3 daemon_name
='salt-master'
7 [ -f /etc
/conf.d
/$daemon_name ] && .
/etc
/conf.d
/$daemon_name
10 ps aux |
grep -v grep |
grep '/usr/bin/python2 /usr/bin/salt-master' |
awk '{print $2}'
15 stat_busy
"Starting Salt Master"
18 if [ -z "$PID" ]; then
19 [ -f /var
/run
/$daemon_name.pid
] && rm -f /var
/run
/$daemon_name.pid
21 /usr
/bin
/$daemon_name -d
27 echo $
(get_pid
) > /var
/run
/$daemon_name.pid
28 add_daemon
$daemon_name
38 stat_busy
"Stopping Salt Master"
41 [ ! -z "$PID" ] && kill $PID &> /dev
/null
47 rm -f /var
/run
/$daemon_name.pid
&> /dev
/null
48 rm_daemon
$daemon_name
60 echo "usage: $0 {start|stop|restart|status}"