diff options
Diffstat (limited to 'main/arpon/arpon.initd')
-rw-r--r-- | main/arpon/arpon.initd | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/main/arpon/arpon.initd b/main/arpon/arpon.initd new file mode 100644 index 0000000000..8a949a9bf0 --- /dev/null +++ b/main/arpon/arpon.initd @@ -0,0 +1,23 @@ +#!/sbin/runscript + +NAME=arpon +DAEMON=/usr/sbin/$NAME + +depend() { + need net +} + +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 $? +} |