mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-26 23:49:59 -07:00
adding init.d scripts and updating makefile
This commit is contained in:
26
scripts/wavehunter_daemon
Normal file
26
scripts/wavehunter_daemon
Normal 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
|
||||
Reference in New Issue
Block a user