]>
git.ipfire.org Git - thirdparty/lldpd.git/blob - redhat/lldpd.init.suse
5 # Required-Start: $local_fs $remote_fs
6 # Required-Stop: $local_fs $remote_fs
7 # Should-Start: $syslog $network $net-snmp
8 # Should-Stop: $syslog $network $net-snmp
10 # Default-Stop: 0 1 2 6
11 # Short-Description: LLDP daemon
12 # Description: 802.1ab (LLDP) daemon
16 # Check for missing binaries (stale symlinks should not happen)
17 # Note: Special treatment of stop for LSB conformance
18 LLDPD_BIN
=/usr
/sbin
/lldpd
19 test -x $LLDPD_BIN ||
{ echo "$LLDPD_BIN not installed";
20 if [ "$1" = "stop" ]; then exit 0;
23 # Check for existence of needed config file and read it
24 LLDPD_CONFIG
=/etc
/sysconfig
/lldpd
25 test -r $LLDPD_CONFIG ||
{ echo "$LLDPD_CONFIG not existing";
26 if [ "$1" = "stop" ]; then exit 0;
34 # Reset status of this service
39 echo -n "Starting lldpd "
40 /sbin
/startproc
$LLDPD_BIN
44 echo -n "Shutting down lldpd "
45 /sbin
/killproc
-TERM $LLDPD_BIN
48 try-restart|condrestart
)
53 rc_reset
# Not running is not a failure.
68 # Does not support reload
73 echo -n "Checking for service lldpd "
74 /sbin
/checkproc
$LLDPD_BIN
80 echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"