adding init.d scripts and updating makefile

This commit is contained in:
Cooper Quintin
2023-12-14 17:19:13 -08:00
parent d1bb29f6c2
commit 9500882ce2
3 changed files with 130 additions and 2 deletions

26
scripts/wavehunter_daemon Normal file
View File

@@ -0,0 +1,26 @@
#! /bin/sh
set -e
case "$1" in
start)
echo -n "Starting wavehunter: "
start-stop-daemon -S -b -a /data/wavehunter
echo "done"
;;
stop)
echo -n "Stopping wavehunter: "
start-stop-daemon -K -n /data/wavehunter
echo "done"
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage atfwd_daemon{ start | stop | restart }" >&2
exit 1
;;
esac
exit 0