summaryrefslogtreecommitdiff
path: root/sysutils/py-salt/files/salt_syndic.in
blob: 078778f45816f1eafd62ab7313f8ff7ab8ba5936 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/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="YES"
#

. /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"