aboutsummaryrefslogtreecommitdiffstats
path: root/main/arpon/arpon.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/arpon/arpon.initd')
-rw-r--r--main/arpon/arpon.initd24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/arpon/arpon.initd b/main/arpon/arpon.initd
new file mode 100644
index 0000000000..5042501d68
--- /dev/null
+++ b/main/arpon/arpon.initd
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+
+NAME=arpon
+DAEMON=/usr/sbin/$NAME
+
+depend() {
+ need net
+ after firewall
+}
+
+start() {
+ ebegin "Starting ${NAME}"
+ start-stop-daemon --start --quiet \
+ --pidfile /var/run/${NAME}.pid \
+ --exec ${DAEMON} -- -d ${ARPON_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${NAME}"
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/${NAME}.pid
+ eend $?
+}