diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-11 23:53:32 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-11 23:53:32 +0000 |
commit | 58f48c7bc29ab86f0d337d9abd758eeaa9b6c9a2 (patch) | |
tree | f9aca5aaf3c72fb1d04f5a455271542bf6108df0 /contrib | |
parent | 04cd031851bd25d0c9b3b3e573ceec196b5a456e (diff) |
Add LSB headers to init scripts.
(closes issue #14864)
Reported by: lathama
Patches:
lsb-init-info-debian.diff uploaded by pkempgen (license 169)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239270 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/init.d/rc.archlinux.asterisk | 13 | ||||
-rwxr-xr-x | contrib/init.d/rc.debian.asterisk | 8 | ||||
-rwxr-xr-x | contrib/init.d/rc.gentoo.asterisk | 12 | ||||
-rwxr-xr-x | contrib/init.d/rc.mandriva.asterisk | 12 | ||||
-rwxr-xr-x | contrib/init.d/rc.redhat.asterisk | 12 | ||||
-rwxr-xr-x | contrib/init.d/rc.slackware.asterisk | 12 | ||||
-rwxr-xr-x | contrib/init.d/rc.suse.asterisk | 15 |
7 files changed, 74 insertions, 10 deletions
diff --git a/contrib/init.d/rc.archlinux.asterisk b/contrib/init.d/rc.archlinux.asterisk index fec62af98..0580c8a01 100755 --- a/contrib/init.d/rc.archlinux.asterisk +++ b/contrib/init.d/rc.archlinux.asterisk @@ -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 diff --git a/contrib/init.d/rc.debian.asterisk b/contrib/init.d/rc.debian.asterisk index 22f6f974e..e16d61c33 100755 --- a/contrib/init.d/rc.debian.asterisk +++ b/contrib/init.d/rc.debian.asterisk @@ -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 diff --git a/contrib/init.d/rc.gentoo.asterisk b/contrib/init.d/rc.gentoo.asterisk index 161bdd0ee..ef54a0efa 100755 --- a/contrib/init.d/rc.gentoo.asterisk +++ b/contrib/init.d/rc.gentoo.asterisk @@ -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 } diff --git a/contrib/init.d/rc.mandriva.asterisk b/contrib/init.d/rc.mandriva.asterisk index 48cd4c565..319ce3e4e 100755 --- a/contrib/init.d/rc.mandriva.asterisk +++ b/contrib/init.d/rc.mandriva.asterisk @@ -10,6 +10,18 @@ # 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 diff --git a/contrib/init.d/rc.redhat.asterisk b/contrib/init.d/rc.redhat.asterisk index df61e7746..2f336ccce 100755 --- a/contrib/init.d/rc.redhat.asterisk +++ b/contrib/init.d/rc.redhat.asterisk @@ -20,6 +20,18 @@ # - 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 diff --git a/contrib/init.d/rc.slackware.asterisk b/contrib/init.d/rc.slackware.asterisk index c1db46f3c..bbe04b7fa 100755 --- a/contrib/init.d/rc.slackware.asterisk +++ b/contrib/init.d/rc.slackware.asterisk @@ -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 diff --git a/contrib/init.d/rc.suse.asterisk b/contrib/init.d/rc.suse.asterisk index e4976bb61..8438c720a 100755 --- a/contrib/init.d/rc.suse.asterisk +++ b/contrib/init.d/rc.suse.asterisk @@ -21,12 +21,15 @@ # - 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. |