diff options
Diffstat (limited to 'net-analyzer/arpon/files/arpon.initd')
-rw-r--r-- | net-analyzer/arpon/files/arpon.initd | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net-analyzer/arpon/files/arpon.initd b/net-analyzer/arpon/files/arpon.initd new file mode 100644 index 000000000000..5f6a1bd8c6e2 --- /dev/null +++ b/net-analyzer/arpon/files/arpon.initd @@ -0,0 +1,19 @@ +#!/sbin/runscript +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting arpon" + start-stop-daemon --start --background --make-pidfile --pidfile "/var/run/arpon.pid" \ + --exec /usr/sbin/arpon -- ${ARPON_OPTS} >/dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Stopping arpon" + start-stop-daemon --stop --pidfile "/var/run/arpon.pid" + eend $? +} |