Add LSB headers to init scripts.
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 11 Jan 2010 23:53:32 +0000 (23:53 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 11 Jan 2010 23:53:32 +0000 (23:53 +0000)
(closes issue #14864)
 Reported by: lathama
 Patches:
       lsb-init-info-debian.diff uploaded by pkempgen (license 169)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239270 65c4cc65-6c06-0410-ace0-fbb531ad65f3

contrib/init.d/rc.archlinux.asterisk
contrib/init.d/rc.debian.asterisk
contrib/init.d/rc.gentoo.asterisk
contrib/init.d/rc.mandriva.asterisk
contrib/init.d/rc.redhat.asterisk
contrib/init.d/rc.slackware.asterisk
contrib/init.d/rc.suse.asterisk

index fec62af..0580c8a 100755 (executable)
@@ -6,6 +6,19 @@
 #
 # 10.10.2008 - Initial Version
 #
+
+### BEGIN INIT INFO
+# Provides:            asterisk
+# Required-Start:    $network $syslog $named $local_fs $remote_fs
+# Required-Stop:     $network $syslog $named $local_fs $remote_fs
+# Should-Start:      dahdi misdn lcr wanrouter mysql postgresql
+# Should-Stop:       dahdi misdn lcr wanrouter mysql postgresql
+# Default-Start:       2 3 4 5
+# Default-Stop:                0 1 6
+# Short-Description:   Asterisk PBX
+# Description:         the Asterisk Open Source PBX
+### END INIT INFO
+
 . /etc/rc.conf
 . /etc/rc.d/functions
 DAEMON=__ASTERISK_SBIN_DIR__/asterisk
index 22f6f97..e16d61c 100755 (executable)
@@ -28,10 +28,10 @@ TRUE=/bin/true
 
 ### BEGIN INIT INFO
 # Provides:            asterisk
-# Required-Start:      $local_fs
-# Required-Stop:       $local_fs
-# Should-Start:                dahdi mysql postgresql
-# Should-Stop:
+# Required-Start:    $network $syslog $named $local_fs $remote_fs
+# Required-Stop:     $network $syslog $named $local_fs $remote_fs
+# Should-Start:      dahdi misdn lcr wanrouter mysql postgresql
+# Should-Stop:       dahdi misdn lcr wanrouter mysql postgresql
 # Default-Start:       2 3 4 5
 # Default-Stop:                0 1 6
 # Short-Description:   Asterisk PBX
index 161bdd0..ef54a0e 100755 (executable)
@@ -1,6 +1,18 @@
 #!/sbin/runscript
 # $Id$
 
+### BEGIN INIT INFO
+# Provides:            asterisk
+# Required-Start:    $network $syslog $named $local_fs $remote_fs
+# Required-Stop:     $network $syslog $named $local_fs $remote_fs
+# Should-Start:      dahdi misdn lcr wanrouter mysql postgresql
+# Should-Stop:       dahdi misdn lcr wanrouter mysql postgresql
+# Default-Start:       2 3 4 5
+# Default-Stop:                0 1 6
+# Short-Description:   Asterisk PBX
+# Description:         the Asterisk Open Source PBX
+### END INIT INFO
+
 depend() {
        need net logger
 }
index 48cd4c5..319ce3e 100755 (executable)
 # processname: asterisk
 # 
 
+### BEGIN INIT INFO
+# Provides:            asterisk
+# Required-Start:    $network $syslog $named $local_fs $remote_fs
+# Required-Stop:     $network $syslog $named $local_fs $remote_fs
+# Should-Start:      dahdi misdn lcr wanrouter mysql postgresql
+# Should-Stop:       dahdi misdn lcr wanrouter mysql postgresql
+# Default-Start:       2 3 4 5
+# Default-Stop:                0 1 6
+# Short-Description:   Asterisk PBX
+# Description:         the Asterisk Open Source PBX
+### END INIT INFO
+
 # $Id$
 
 TTY=9                  # TTY (if you want one) for Asterisk to run on
index df61e77..2f336cc 100755 (executable)
 # - Added support for -U and -G command line options
 # - Modified "reload" to call asterisk -rx 'reload' 
 
+### BEGIN INIT INFO
+# Provides:            asterisk
+# Required-Start:    $network $syslog $named $local_fs $remote_fs
+# Required-Stop:     $network $syslog $named $local_fs $remote_fs
+# Should-Start:      dahdi misdn lcr wanrouter mysql postgresql
+# Should-Stop:       dahdi misdn lcr wanrouter mysql postgresql
+# Default-Start:       2 3 4 5
+# Default-Stop:                0 1 6
+# Short-Description:   Asterisk PBX
+# Description:         the Asterisk Open Source PBX
+### END INIT INFO
+
 # Use this option to specify a different configuration directory
 #AST_CONFIG=/etc/asterisk
 
index c1db46f..bbe04b7 100755 (executable)
@@ -8,6 +8,18 @@
 #
 # $Id$
 
+### BEGIN INIT INFO
+# Provides:            asterisk
+# Required-Start:    $network $syslog $named $local_fs $remote_fs
+# Required-Stop:     $network $syslog $named $local_fs $remote_fs
+# Should-Start:      dahdi misdn lcr wanrouter mysql postgresql
+# Should-Stop:       dahdi misdn lcr wanrouter mysql postgresql
+# Default-Start:       2 3 4 5
+# Default-Stop:                0 1 6
+# Short-Description:   Asterisk PBX
+# Description:         the Asterisk Open Source PBX
+### END INIT INFO
+
 asterisk_start() {
    if [ -x /usr/sbin/asterisk ]; then
       # Check if Asterisk is already running.  If it is, then bug out, because
index e4976bb..8438c72 100755 (executable)
 # - Modified "reload" to call asterisk -rx 'reload' 
 
 ### BEGIN INIT INFO
-# Provides:                    asterisk
-# Required-Start:      +dahdi $network $named
-# Required-Stop:
-# Default-Start:     3 5
-# Default-Stop:      0 1 2 4 6
-# Description: dahdi - dahdi modules for Asterisk
+# Provides:            asterisk
+# Required-Start:    $network $syslog $named $local_fs $remote_fs
+# Required-Stop:     $network $syslog $named $local_fs $remote_fs
+# Should-Start:      dahdi misdn lcr wanrouter mysql postgresql
+# Should-Stop:       dahdi misdn lcr wanrouter mysql postgresql
+# Default-Start:       2 3 4 5
+# Default-Stop:                0 1 6
+# Short-Description:   Asterisk PBX
+# Description:         the Asterisk Open Source PBX
 ### END INIT INFO
 
 # Source function library.