diff options
Diffstat (limited to 'net-misc/stargazer/files/sgauth')
-rw-r--r-- | net-misc/stargazer/files/sgauth | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net-misc/stargazer/files/sgauth b/net-misc/stargazer/files/sgauth new file mode 100644 index 000000000000..130b525935d3 --- /dev/null +++ b/net-misc/stargazer/files/sgauth @@ -0,0 +1,27 @@ +#!/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 $? +}
\ No newline at end of file |