Author: arekm                        Date: Fri Oct  3 10:51:55 2008 GMT
Module: SOURCES                       Tag: ASTERISK_1_4
---- Log message:
- updated

---- Files affected:
SOURCES:
   asterisk.init (1.8 -> 1.8.2.1) 

---- Diffs:

================================================================
Index: SOURCES/asterisk.init
diff -u SOURCES/asterisk.init:1.8 SOURCES/asterisk.init:1.8.2.1
--- SOURCES/asterisk.init:1.8   Thu Dec  8 02:02:49 2005
+++ SOURCES/asterisk.init       Fri Oct  3 12:51:49 2008
@@ -15,6 +15,9 @@
 # config:      /etc/asterisk/asterisk.conf
 
 
+# Sanity check
+[ -f /etc/asterisk/asterisk.conf ] || exit 0
+
 # Source function library
 . /etc/rc.d/init.d/functions
 
@@ -34,13 +37,7 @@
        exit 0
 fi
 
-# Sanity check
-[ -f /etc/asterisk/asterisk.conf ] || exit 0
-
-RETVAL=0
-# See how we were called.
-case "$1" in
-  start)
+start() {
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/asterisk ]; then
                msg_starting Asterisk
@@ -50,8 +47,9 @@
        else
                msg_already_running Asterisk
        fi
-       ;;
-  stop)
+}
+
+stop() {
        # Stop daemons.
        if [ -f /var/lock/subsys/asterisk ]; then
                msg_stopping Asterisk
@@ -60,11 +58,20 @@
        else
                msg_not_running Asterisk
        fi
+}
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+  start)
+       start
+       ;;
+  stop)
+       stop
        ;;
   restart|force-reload)
-       $0 stop
-       $0 start
-       exit $?
+       stop
+       start
        ;;
   reload)
        if [ -f /var/lock/subsys/asterisk ]; then
@@ -79,6 +86,9 @@
                exit 1
        fi
        ;;
+  logger-reload)
+        asterisk -rx 'logger reload'
+        ;;
   status)
        status asterisk
        exit $?
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/asterisk.init?r1=1.8&r2=1.8.2.1&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to