SOURCES: cyrus-sync.init - uce nice name

glen glen at pld-linux.org
Mon Apr 28 15:30:26 CEST 2008


Author: glen                         Date: Mon Apr 28 13:30:26 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- uce nice name

---- Files affected:
SOURCES:
   cyrus-sync.init (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SOURCES/cyrus-sync.init
diff -u SOURCES/cyrus-sync.init:1.3 SOURCES/cyrus-sync.init:1.4
--- SOURCES/cyrus-sync.init:1.3	Mon Apr 28 15:27:44 2008
+++ SOURCES/cyrus-sync.init	Mon Apr 28 15:30:21 2008
@@ -6,6 +6,7 @@
 #
 # description:	cyrus-imap replication service
 #
+# $Id$
 
 # Source function library
 . /etc/rc.d/init.d/functions
@@ -16,7 +17,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 cyrus-sync
+		msg_network_down "Cyrus Replication"
 		exit 1
 	fi
 else
@@ -26,7 +27,7 @@
 start() {
 	# Check if the service is already running?
 	if [ ! -f /var/lock/subsys/cyrus-sync ]; then
-		msg_starting cyrus-sync
+		msg_starting "Cyrus Replication"
 		start-stop-daemon --start --quiet --exec /usr/lib/cyrus/sync_client -- -r
 		if ps -C sync_client >/dev/null 2>&1; then
 			RETVAL=$?
@@ -36,15 +37,15 @@
 			fail
 		fi
 	else
-		msg_already_running cyrus-sync
+		msg_already_running "Cyrus Replication"
 	fi
 }
 
 stop() {
 	if [ -f /var/lock/subsys/cyrus-sync ]; then
 		# Stop daemons.
-		msg_stopping cyrus-sync
-		start-stop-daemon --stop --quiet --name "sync_client"
+		msg_stopping "Cyrus Replication"
+		start-stop-daemon --stop --quiet --name sync_client
 		RETVAL=$?
 		if [ $RETVAL -eq 0 ]; then
 			rm -f /var/lock/subsys/cyrus-sync
@@ -53,7 +54,7 @@
 			fail
 		fi
 	else
-		msg_not_running cyrus-sync
+		msg_not_running "Cyrus Replication"
 	fi
 }
 
@@ -62,7 +63,7 @@
 		stop
 		start
 	else
-		msg_not_running cyrus-sync
+		msg_not_running "Cyrus Replication"
 		RETVAL=$1
 	fi
 }
@@ -87,7 +88,7 @@
 	condrestart 7
 	;;
   status)
-	status cyrus-sync
+	status cyrus-sync sync_client
 	RETVAL=$?
 	;;
   *)
================================================================

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



More information about the pld-cvs-commit mailing list