aboutsummaryrefslogtreecommitdiffstats
path: root/1.4.23-rc4/contrib/init.d/rc.gentoo.asterisk
diff options
context:
space:
mode:
Diffstat (limited to '1.4.23-rc4/contrib/init.d/rc.gentoo.asterisk')
-rwxr-xr-x1.4.23-rc4/contrib/init.d/rc.gentoo.asterisk26
1 files changed, 0 insertions, 26 deletions
diff --git a/1.4.23-rc4/contrib/init.d/rc.gentoo.asterisk b/1.4.23-rc4/contrib/init.d/rc.gentoo.asterisk
deleted file mode 100755
index 161bdd0ee..000000000
--- a/1.4.23-rc4/contrib/init.d/rc.gentoo.asterisk
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/sbin/runscript
-# $Id$
-
-depend() {
- need net logger
-}
-
-start() {
- # Check if Asterisk is already running. If it is, then bug out, because
- # starting safe_asterisk when Asterisk is running is very bad.
- VERSION=`${ASTSBINDIR}/asterisk -rx 'core show version'`
- if [ "`echo $VERSION | cut -c 1-8`" = "Asterisk" ]; then
- echo "Asterisk is already running. $0 will exit now."
- exit 1
- fi
-
- ebegin "Starting Asterisk"
- /usr/sbin/asterisk
- eend $? "Failed to start Asterisk"
-}
-
-stop() {
- ebegin "Stopping Asterisk"
- kill $(cat /var/run/asterisk.pid)
- eend $? "Failed to stop Asterisk"
-}