aboutsummaryrefslogtreecommitdiffstats
path: root/main/arpon/arpon.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-09-02 11:03:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-09-02 11:03:45 +0000
commitc90c3edcabb91c4946af44b0ba58c016b5484538 (patch)
tree2b28cc31ea4c3d409a971d1e06cb76a837ae4123 /main/arpon/arpon.initd
parent1ffa728e33f190c047b2addf0125d767d12116a1 (diff)
downloadaports-c90c3edcabb91c4946af44b0ba58c016b5484538.tar.bz2
aports-c90c3edcabb91c4946af44b0ba58c016b5484538.tar.xz
main/arpon: new aport
Arp handler inspectiON is a handler daemon with tools to handle all ARP aspects http://arpon.sourceforge.net/ fixes #149
Diffstat (limited to 'main/arpon/arpon.initd')
-rw-r--r--main/arpon/arpon.initd23
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 $?
+}