浏览代码

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 %}

正在加载...
取消
保存