Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion Router Resources/init.d/demonsaw
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,22 @@ case "$1" in
echo "Demonsaw should now be killed!"

;;

restart)
echo "trying to pkill demonsaw"
# pkill should not normally be used as it will stop any process identified.
# This is the best way I could find to kill the server when needed.
pkill demonsaw
echo "Demonsaw should now be killed!"
echo "Starting Demonsaw Now!"
cd /var/www/demonsaw/
./demonsaw-screen.sh

;;

*)

echo "usage: /etc/init.d/demonsaw {start|stop}"
echo "usage: /etc/init.d/demonsaw {start|restart|stop}"
exit 1
;;

Expand Down