aboutsummaryrefslogtreecommitdiffstats
path: root/config/darkstat/darkstat.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/darkstat/darkstat.sh')
-rw-r--r--config/darkstat/darkstat.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/config/darkstat/darkstat.sh b/config/darkstat/darkstat.sh
new file mode 100644
index 00000000..a7706142
--- /dev/null
+++ b/config/darkstat/darkstat.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+rc_start() {
+ /usr/local/sbin/darkstat --detach
+}
+
+rc_stop() {
+ killall darkstat
+}
+
+case $1 in
+ start)
+ rc_start
+ ;;
+ stop)
+ rc_stop
+ ;;
+ restart)
+ rc_stop
+ rc_start
+ ;;
+esac