You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
461 B
27 lines
461 B
#!/sbin/runscript
|
|
|
|
DAEMON=/usr/sbin/sgauth
|
|
SGAUTH_OPTS="/etc/stargazer/sgauth.conf"
|
|
PIDFILE="/run/sgauth.pid"
|
|
|
|
depend() {
|
|
need net
|
|
provide sgauth
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting sgauth"
|
|
start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec ${DAEMON} -- ${SGAUTH_OPTS}
|
|
eend $?
|
|
}
|
|
|
|
start_post() {
|
|
pgrep -n $RC_SVCNAME > ${PIDFILE}
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping sgauth"
|
|
start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
|
|
rm -f ${PIDFILE}
|
|
eend $?
|
|
} |