summaryrefslogtreecommitdiff
path: root/social/asterisk/asterisk
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-08-22 14:01:38 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-08-22 14:01:38 -0300
commit236a7904452e148aa050e374bfe4dee41cb1974e (patch)
treef3bdbed3a30deca9131465e0bfce0e55f66bfb90 /social/asterisk/asterisk
parent9947b58ec4c681e62db65ccd8a8b0aaee581437d (diff)
Asterisk upgraded and moved to [pcr]
Diffstat (limited to 'social/asterisk/asterisk')
-rw-r--r--social/asterisk/asterisk38
1 files changed, 0 insertions, 38 deletions
diff --git a/social/asterisk/asterisk b/social/asterisk/asterisk
deleted file mode 100644
index f823caefc..000000000
--- a/social/asterisk/asterisk
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-# general config
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PID=`pidof -o %PPID /usr/sbin/asterisk`
-case "$1" in
- start)
- stat_busy "Starting Asterisk"
- [ -z "$PID" ] && cd /var/lib/asterisk && /usr/sbin/asterisk -G asterisk -U asterisk
- if [ $? -gt 0 ]; then
- stat_fail
- else
- add_daemon asterisk
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping Asterisk"
- [ ! -z "$PID" ] && kill $PID &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm -f /var/run/asterisk/asterisk.pid &>/dev/null
- rm_daemon asterisk
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 2
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0