diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/arpon/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/arpon/files')
-rw-r--r-- | net-analyzer/arpon/files/arpon.confd | 5 | ||||
-rw-r--r-- | net-analyzer/arpon/files/arpon.initd | 19 |
2 files changed, 24 insertions, 0 deletions
diff --git a/net-analyzer/arpon/files/arpon.confd b/net-analyzer/arpon/files/arpon.confd new file mode 100644 index 000000000000..d1ce050fa4cb --- /dev/null +++ b/net-analyzer/arpon/files/arpon.confd @@ -0,0 +1,5 @@ +METHOD="--darpi" +IFACE="eth0" +LOGFILE="/var/log/arpon.log" + +ARPON_OPTS="${METHOD} --iface ${IFACE} --log-file ${LOGFILE} --log" diff --git a/net-analyzer/arpon/files/arpon.initd b/net-analyzer/arpon/files/arpon.initd new file mode 100644 index 000000000000..dc69135c26e3 --- /dev/null +++ b/net-analyzer/arpon/files/arpon.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# 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 $? +} |