diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2010-10-28 11:12:09 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2010-10-28 11:12:09 +0000 |
commit | fb990d5ea38fb4a596478e81de3dc5ffaf0319ee (patch) | |
tree | 46e92ea60edead7cf59188636205c94e157664df /testing/openlldp/openlldp.initd | |
parent | 589307e7d42fdff22aca545a2c67ff32c27d734c (diff) | |
download | aports-fb990d5ea38fb4a596478e81de3dc5ffaf0319ee.tar.bz2 aports-fb990d5ea38fb4a596478e81de3dc5ffaf0319ee.tar.xz |
testing/openlldp: init added
Diffstat (limited to 'testing/openlldp/openlldp.initd')
-rwxr-xr-x | testing/openlldp/openlldp.initd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/openlldp/openlldp.initd b/testing/openlldp/openlldp.initd new file mode 100755 index 0000000000..4ab856addc --- /dev/null +++ b/testing/openlldp/openlldp.initd @@ -0,0 +1,24 @@ +#!/sbin/runscript + +NAME="lldpd" +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 $? +} + |