diff options
author | Jason Unovitch <junovitch@FreeBSD.org> | 2015-08-23 23:46:46 +0000 |
---|---|---|
committer | Jason Unovitch <junovitch@FreeBSD.org> | 2015-08-23 23:46:46 +0000 |
commit | d3e22dc2ff10bc030f746f06c6a3512490127b82 (patch) | |
tree | f33a1ee7a1bd3dc15d48d6901cb0af94fe25432c /sysutils/py-salt/files | |
parent | - Switch to options helpers (diff) |
sysutils/py-salt: update 2015.5.3 -> 2015.5.4 [1], add salt_api rc script [2]
PR: 202417 [1]
PR: 202042 [2]
Submitted by: Christer Edwards <christer.edwards@gmail.com> (maintainer) [1]
Submitted by: xenophon+fbsdports@irtnog.org [2]
Approved by: maintainer [2], feld (mentor)
Notes
Notes:
svn path=/head/; revision=395146
Diffstat (limited to 'sysutils/py-salt/files')
-rw-r--r-- | sysutils/py-salt/files/salt_api.in | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sysutils/py-salt/files/salt_api.in b/sysutils/py-salt/files/salt_api.in new file mode 100644 index 000000000000..79e04b34f42f --- /dev/null +++ b/sysutils/py-salt/files/salt_api.in @@ -0,0 +1,30 @@ +#!/bin/sh + +# $FreeBSD$ +# +# Salt API startup script +# +# PROVIDE: salt_api +# REQUIRE: LOGIN +# KEYWORD: shutdown + +# Add the following to /etc/rc.conf[.local] to enable this service +# +# salt_api_enable="YES" +# + +. /etc/rc.subr + +name="salt_api" +rcvar=salt_api_enable + +load_rc_config ${name} + +: ${salt_api_enable:="NO"} + +command="%%PREFIX%%/bin/salt-api" +command_interpreter="%%PYTHON_CMD%%" +required_files="%%PREFIX%%/etc/salt" +command_args="-c ${required_files} -d" + +run_rc_command "$1" |