ソースを参照

rc.local added to linux formula

tags/2016.12
Jakub Pavlik 9年前
コミット
7885938f95
2個のファイルの変更26行の追加0行の削除
  1. +23
    -0
      README.rst
  2. +3
    -0
      linux/system/init.sls

+ 23
- 0
README.rst ファイルの表示

@@ -195,6 +195,29 @@ Also pin it's packages with priority 900.
priority: 900
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
-------------


+ 3
- 0
linux/system/init.sls ファイルの表示

@@ -21,6 +21,9 @@ include:
{%- if system.group|length > 0 %}
- linux.system.group
{%- endif %}
{%- if system.rc is defined %}
- linux.system.rc
{%- endif %}
{%- if system.job|length > 0 %}
- linux.system.job
{%- endif %}

読み込み中…
キャンセル
保存