new file: contrib/init/rc.g15stats

This commit is contained in:
Daniel Menelkir committed 2021-07-23 08:02:08 -03:00
1 parent 9dda88635a
commit b749ed8ad5
1 file changed
+25
+25
View File
@@ -0,0 +1,25 @@
#!/bin/sh
. /etc/rc.subr
case $1 in
start)
msg "Starting g15stats..."
start_daemon /usr/bin/g15stats -d
;;
stop)
msg "Stopping g15stats..."
stop_daemon /usr/bin/g15stats
;;
restart)
$0 stop
sleep 1
$0 start
;;
status)
status_daemon /usr/bin/g15stats
;;
*)
echo "usage: $0 [start|stop|restart|status]"
;;
esac