summaryrefslogtreecommitdiff
path: root/packages/asterisk/asterisk-1.4.11/init
diff options
context:
space:
mode:
authorOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2008-05-05 21:52:39 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2008-05-05 21:52:39 +0000
commit0fb268a8c03bbea4fc1f34a3b7a9ebe7a02c471d (patch)
treeccf99743568c299437bb03381b1625b8c0a838ee /packages/asterisk/asterisk-1.4.11/init
parent6165473d292012b6c60308c8eb0f3604a020b046 (diff)
parent66af3461a3fdf3eb7ceb76bb2a04e66be8283b8c (diff)
merge of '86dacb8c8e579fd5d42ab61a0c0f344bcf74146d'
and 'd4a97f257158aba4fde91347580030110ef215bf'
Diffstat (limited to 'packages/asterisk/asterisk-1.4.11/init')
-rw-r--r--packages/asterisk/asterisk-1.4.11/init77
1 files changed, 0 insertions, 77 deletions
diff --git a/packages/asterisk/asterisk-1.4.11/init b/packages/asterisk/asterisk-1.4.11/init
deleted file mode 100644
index d53a9a1e5e..0000000000
--- a/packages/asterisk/asterisk-1.4.11/init
+++ /dev/null
@@ -1,77 +0,0 @@
-#! /bin/sh
-#
-# This is an init script for openembedded
-# Copy it to /etc/init.d/callweaver and type
-# > update-rc.d asterisk defaults 60
-#
-asterisk=/usr/sbin/asterisk
-pidfile=/var/run/asterisk/asterisk.pid
-asterisk_args="-npqT -U asterisk -G asterisk"
-
-test -x "$asterisk" || exit 0
-
-case "$1" in
- start)
- echo -n "Starting Asterisk"
- start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
- echo "."
- ;;
- stop)
- echo -n "Stopping Asterisk"
- $asterisk -rx "stop gracefully"
- sleep 4
- if [ -f $pidfile ]; then
- start-stop-daemon --stop --quiet --pidfile $pidfile
- fi
- echo "."
- ;;
- force-stop)
- echo -n "Stopping Asterisk"
- $asterisk -rx "stop now"
- sleep 2
- if [ -f $pidfile ]; then
- start-stop-daemon --stop --quiet --pidfile $pidfile
- fi
- echo "."
- ;;
- restart)
- echo -n "Restarting Asterisk"
- if [ -f $pidfile ]; then
- $asterisk -rx "restart gracefully"
- sleep 2
- else
- start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
- fi
- echo "."
- ;;
- force-restart)
- echo -n "Forcibly Restarting Asterisk"
- if [ -f $pidfile ]; then
- $asterisk -rx "restart now"
- sleep 2
- else
- start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
- fi
- echo "."
- ;;
- reload)
- echo -n "Reloading Asterisk Configuration"
- if [ -f $pidfile ]; then
- $asterisk -rx "reload"
- else
- start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
- fi
- echo "."
- ;;
- logger-reload)
- if [ -f $pidfile ]; then
- $asterisk -rx "logger reload"
- fi
- ;;
- *)
- echo "Usage: /etc/init.d/asterisk {start|stop|force-stop|restart|force-restart|reload|logger-reload}"
- exit 1
-esac
-
-exit 0
-