SOURCES: openlldp-lldp.init - use OpenLLDP Daemon as displayname

glen glen at pld-linux.org
Wed Jan 23 09:46:50 CET 2008


Author: glen                         Date: Wed Jan 23 08:46:50 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- use OpenLLDP Daemon as displayname

---- Files affected:
SOURCES:
   openlldp-lldp.init (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SOURCES/openlldp-lldp.init
diff -u SOURCES/openlldp-lldp.init:1.4 SOURCES/openlldp-lldp.init:1.5
--- SOURCES/openlldp-lldp.init:1.4	Wed Jan 23 09:45:23 2008
+++ SOURCES/openlldp-lldp.init	Wed Jan 23 09:46:44 2008
@@ -23,7 +23,7 @@
 # Check that networking is up.
 if is_yes "${NETWORKING}"; then
 	if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
-		msg_network_down lldpd
+		msg_network_down "OpenLLDP Daemon"
 		exit 1
 	fi
 else
@@ -33,7 +33,7 @@
 start() {
 	# Check if the service is already running?
 	if [ ! -f /var/lock/subsys/lldpd ]; then
-		msg_starting lldpd
+		msg_starting "OpenLLDP Daemon"
 		# Default debug switch "n". Default log file /var/log/lldpd.log
 		# For now use start-stop-daemon. Need to patch code for daemonizing
 		start-stop-daemon \
@@ -52,19 +52,19 @@
 			fail
 		fi
 	else
-		msg_already_running lldpd
+		msg_already_running "OpenLLDP Daemon"
 	fi
 }
 
 stop() {
 	# Stop daemons.
 	if [ -f /var/lock/subsys/lldpd ]; then
-		msg_stopping lldpd
+		msg_stopping "OpenLLDP Daemon"
 		start-stop-daemon --stop --pidfile /var/run/lldpd.pid --name lldpd
 		ok
 		rm -f /var/lock/subsys/lldpd /var/run/lldpd.pid
 	else
-		msg_not_running lldpd
+		msg_not_running "OpenLLDP Daemon"
 	fi
 }
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/openlldp-lldp.init?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list