mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@239270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6,6 +6,19 @@
|
|||||||
#
|
#
|
||||||
# 10.10.2008 - Initial Version
|
# 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.conf
|
||||||
. /etc/rc.d/functions
|
. /etc/rc.d/functions
|
||||||
DAEMON=__ASTERISK_SBIN_DIR__/asterisk
|
DAEMON=__ASTERISK_SBIN_DIR__/asterisk
|
||||||
|
|||||||
@@ -28,10 +28,10 @@ TRUE=/bin/true
|
|||||||
|
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: asterisk
|
# Provides: asterisk
|
||||||
# Required-Start: $local_fs
|
# Required-Start: $network $syslog $named $local_fs $remote_fs
|
||||||
# Required-Stop: $local_fs
|
# Required-Stop: $network $syslog $named $local_fs $remote_fs
|
||||||
# Should-Start: dahdi mysql postgresql
|
# Should-Start: dahdi misdn lcr wanrouter mysql postgresql
|
||||||
# Should-Stop:
|
# Should-Stop: dahdi misdn lcr wanrouter mysql postgresql
|
||||||
# Default-Start: 2 3 4 5
|
# Default-Start: 2 3 4 5
|
||||||
# Default-Stop: 0 1 6
|
# Default-Stop: 0 1 6
|
||||||
# Short-Description: Asterisk PBX
|
# Short-Description: Asterisk PBX
|
||||||
|
|||||||
@@ -1,6 +1,18 @@
|
|||||||
#!/sbin/runscript
|
#!/sbin/runscript
|
||||||
# $Id$
|
# $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() {
|
depend() {
|
||||||
need net logger
|
need net logger
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,18 @@
|
|||||||
# processname: asterisk
|
# 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$
|
# $Id$
|
||||||
|
|
||||||
TTY=9 # TTY (if you want one) for Asterisk to run on
|
TTY=9 # TTY (if you want one) for Asterisk to run on
|
||||||
|
|||||||
@@ -20,6 +20,18 @@
|
|||||||
# - Added support for -U and -G command line options
|
# - Added support for -U and -G command line options
|
||||||
# - Modified "reload" to call asterisk -rx 'reload'
|
# - 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
|
# Use this option to specify a different configuration directory
|
||||||
#AST_CONFIG=/etc/asterisk
|
#AST_CONFIG=/etc/asterisk
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,18 @@
|
|||||||
#
|
#
|
||||||
# $Id$
|
# $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() {
|
asterisk_start() {
|
||||||
if [ -x /usr/sbin/asterisk ]; then
|
if [ -x /usr/sbin/asterisk ]; then
|
||||||
# Check if Asterisk is already running. If it is, then bug out, because
|
# Check if Asterisk is already running. If it is, then bug out, because
|
||||||
|
|||||||
@@ -21,12 +21,15 @@
|
|||||||
# - Modified "reload" to call asterisk -rx 'reload'
|
# - Modified "reload" to call asterisk -rx 'reload'
|
||||||
|
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: asterisk
|
# Provides: asterisk
|
||||||
# Required-Start: +dahdi $network $named
|
# Required-Start: $network $syslog $named $local_fs $remote_fs
|
||||||
# Required-Stop:
|
# Required-Stop: $network $syslog $named $local_fs $remote_fs
|
||||||
# Default-Start: 3 5
|
# Should-Start: dahdi misdn lcr wanrouter mysql postgresql
|
||||||
# Default-Stop: 0 1 2 4 6
|
# Should-Stop: dahdi misdn lcr wanrouter mysql postgresql
|
||||||
# Description: dahdi - dahdi modules for Asterisk
|
# Default-Start: 2 3 4 5
|
||||||
|
# Default-Stop: 0 1 6
|
||||||
|
# Short-Description: Asterisk PBX
|
||||||
|
# Description: the Asterisk Open Source PBX
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
# Source function library.
|
# Source function library.
|
||||||
|
|||||||
Reference in New Issue
Block a user