freebsd-ports/sysutils/py-salt/files/salt_syndic.in
Jason Unovitch 46cc6a938d sysutils/py-salt: add new rc scripts, clean up current scripts
- Add salt-proxy.in and associated pkg-message text for Salt Proxy
- Restore installation of salt-api.in accidentally removed in r396791
- Set a default for PATH to address upstream issue 27151
- While here, make headers more verbose and trim variable quotes per rclint

PR:		203262
Submitted by:	Christer Edwards <christer.edwards@gmail.com> (maintainer)
2015-09-27 14:32:04 +00:00

31 lines
580 B
Bash

#!/bin/sh
# $FreeBSD$
#
# Salt Synic startup script
#
# PROVIDE: salt_syndic
# REQUIRE: LOGIN
# KEYWORD: shutdown
# Add the following to /etc/rc.conf[.local] to enable this service
#
# salt_syndic_enable (bool): Set to NO by default.
# Set it to YES to enable salt_syndic
#
. /etc/rc.subr
name=salt_syndic
rcvar=salt_syndic_enable
load_rc_config ${name}
: ${salt_syndic_enable:=NO}
command="%%PREFIX%%/bin/salt-syndic"
command_interpreter="%%PYTHON_CMD%%"
required_files="%%PREFIX%%/etc/salt"
command_args="-c ${required_files} -d"
run_rc_command "$1"