aboutsummaryrefslogtreecommitdiffstats
path: root/packages/darkstat/darkstat.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/darkstat/darkstat.sh')
-rw-r--r--packages/darkstat/darkstat.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/darkstat/darkstat.sh b/packages/darkstat/darkstat.sh
new file mode 100644
index 00000000..a7706142
--- /dev/null
+++ b/packages/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