SOURCES: openlldp-lldp.init - cosmetics
glen
glen at pld-linux.org
Tue Jan 22 13:40:40 CET 2008
Author: glen Date: Tue Jan 22 12:40:40 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- cosmetics
---- Files affected:
SOURCES:
openlldp-lldp.init (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/openlldp-lldp.init
diff -u SOURCES/openlldp-lldp.init:1.1 SOURCES/openlldp-lldp.init:1.2
--- SOURCES/openlldp-lldp.init:1.1 Tue Jan 22 13:33:08 2008
+++ SOURCES/openlldp-lldp.init Tue Jan 22 13:40:34 2008
@@ -9,7 +9,7 @@
# of the IEEE standard 802.1AB Link Layer Discovery Protocol.
# processname: lldpd
#
-# Ilja Bobkevic (ilja.bobkevic at delfi.lt)
+# Ilja Bobkevic <ilja.bobkevic at delfi.lt>
# Source function library
. /etc/rc.d/init.d/functions
@@ -34,9 +34,9 @@
# Check if the service is already running?
if [ ! -f /var/lock/subsys/lldpd ]; then
msg_starting lldpd
-# Default debug switch "n". Default log file /var/log/lldpd.log
-# For now force to background. Need to patch code for daemonizing
- lldpd -d ${LLDP_DEBUG:-n} >> "${LLDP_LOG_FILE:-/var/log/lldpd.log}" &
+ # Default debug switch "n". Default log file /var/log/lldpd.log
+ # For now force to background. Need to patch code for daemonizing
+ /usr/sbin/lldpd -d ${LLDP_DEBUG:-n} >> "${LLDP_LOG_FILE:-/var/log/lldpd.log}" &
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/lldpd
ok
@@ -49,8 +49,8 @@
# Stop daemons.
if [ -f /var/lock/subsys/lldpd ]; then
msg_stopping lldpd
- rm -rf /var/lock/subsys/lldpd
-# Doesn't generate any pidfile, so just kill'em'all
+ rm -f /var/lock/subsys/lldpd
+ # Doesn't generate any pidfile, so just kill'em'all
killall -9 lldpd
else
msg_not_running lldpd
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/openlldp-lldp.init?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list