Browse Source

rc.local added to linux formula

tags/2016.12
Jakub Pavlik 9 years ago
parent
commit
7885938f95
2 changed files with 26 additions and 0 deletions
  1. +23
    -0
      README.rst
  2. +3
    -0
      linux/system/init.sls

+ 23
- 0
README.rst View File

priority: 900 priority: 900
package: '*' package: '*'


rc.local example

.. code-block:: yaml

linux:
system:
rc:
local: |
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
exit 0


Linux network Linux network
------------- -------------



+ 3
- 0
linux/system/init.sls View File

{%- if system.group|length > 0 %} {%- if system.group|length > 0 %}
- linux.system.group - linux.system.group
{%- endif %} {%- endif %}
{%- if system.rc is defined %}
- linux.system.rc
{%- endif %}
{%- if system.job|length > 0 %} {%- if system.job|length > 0 %}
- linux.system.job - linux.system.job
{%- endif %} {%- endif %}

Loading…
Cancel
Save