]> git.pld-linux.org Git - packages/cyrus-imapd.git/commitdiff
- uce nice name
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 28 Apr 2008 13:30:21 +0000 (13:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cyrus-sync.init -> 1.4

cyrus-sync.init

index 4cd90c4c434b1f23c201f6975fcc7b821582ca23..7e32d3fb92590b98e085d46ec331125a2a674af2 100644 (file)
@@ -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 @@ fi
 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 @@ start() {
                        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 @@ stop() {
                        fail
                fi
        else
-               msg_not_running cyrus-sync
+               msg_not_running "Cyrus Replication"
        fi
 }
 
@@ -62,7 +63,7 @@ condrestart() {
                stop
                start
        else
-               msg_not_running cyrus-sync
+               msg_not_running "Cyrus Replication"
                RETVAL=$1
        fi
 }
@@ -87,7 +88,7 @@ case "$1" in
        condrestart 7
        ;;
   status)
-       status cyrus-sync
+       status cyrus-sync sync_client
        RETVAL=$?
        ;;
   *)
This page took 0.393594 seconds and 4 git commands to generate.