diff options
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 $? +} + |