Commit 62ccd3aa authored by Raphaël Hertzog's avatar Raphaël Hertzog

Fix up the init script

parent 160d4cc2
......@@ -41,8 +41,8 @@ do_start()
--chuid beef-xss \
--chdir /usr/share/beef-xss \
--startas "$DAEMON" \
--background \
-- $DAEMON_ARGS
#--pidfile $PIDFILE \
}
#
......@@ -53,7 +53,6 @@ do_stop()
start-stop-daemon --stop \
--user beef-xss \
--retry 2
#--pidfile $PIDFILE \
}
case "$1" in
......@@ -74,8 +73,7 @@ case "$1" in
esac
;;
status)
# XXX: to update
status_of_proc -p /usr/lib/dradis/server/tmp/pids/server.pid "$DAEMON" dradis && exit 0 || exit $?
start-stop-daemon --status --user beef-xss && exit 0 || exit $?
;;
restart|force-reload)
log_daemon_msg "Restarting $DESC" "$NAME"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment