aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-lldp/open-lldp.initd
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-09-21 13:11:35 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-09-21 13:11:35 +0000
commit4dc8e9a4731604efdc0f0b7de6a0a11af32aad72 (patch)
tree9173ad11e58b40d9b15ab90ea456356c7ac3efb6 /main/open-lldp/open-lldp.initd
parentc54061eba5ff03c2503cc2951ae38095230f649e (diff)
downloadaports-4dc8e9a4731604efdc0f0b7de6a0a11af32aad72.tar.bz2
aports-4dc8e9a4731604efdc0f0b7de6a0a11af32aad72.tar.xz
testing/open-lldp: promote to main
Diffstat (limited to 'main/open-lldp/open-lldp.initd')
-rwxr-xr-xmain/open-lldp/open-lldp.initd24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/open-lldp/open-lldp.initd b/main/open-lldp/open-lldp.initd
new file mode 100755
index 0000000000..ed9807d514
--- /dev/null
+++ b/main/open-lldp/open-lldp.initd
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+
+NAME="lldpad"
+DAEMON="/usr/sbin/$NAME"
+pidfile=/var/run/$NAME.pid
+
+depend() {
+ need net
+ after firewall
+}
+
+start() {
+ ebegin "Starting ${NAME}"
+ start-stop-daemon --start --quiet --pidfile ${pidfile} \
+ --exec ${DAEMON} -- ${OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${NAME}"
+ start-stop-daemon --stop --exec ${DAEMON}
+ eend $?
+}
+