freebsd-ports/sysutils/py-salt/files/salt_syndic.in
2021-04-06 16:31:13 +02:00

29 lines
566 B
Bash

#!/bin/sh
# 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"