diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-11-07 20:09:10 -0200 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-11-07 20:09:10 -0200 |
commit | 6c339a2fc68248809475a951fce0186079902ea3 (patch) | |
tree | 37dac99cf46aa1039fbf8f575d59e065a38a9ded /pcr/yate/yate.init | |
parent | f81d1c0d9e6506b23ccb87594acdae9bb82cc871 (diff) | |
download | abslibre-6c339a2fc68248809475a951fce0186079902ea3.tar.gz abslibre-6c339a2fc68248809475a951fce0186079902ea3.tar.bz2 abslibre-6c339a2fc68248809475a951fce0186079902ea3.zip |
update yate to 5.4.0.1
Diffstat (limited to 'pcr/yate/yate.init')
-rw-r--r-- | pcr/yate/yate.init | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/pcr/yate/yate.init b/pcr/yate/yate.init deleted file mode 100644 index 762fff8c7..000000000 --- a/pcr/yate/yate.init +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash -OPTS="-rs -vvv -l /var/log/yate" - -# Source function library. -. /etc/rc.conf -. /etc/rc.d/functions - -RETVAL=0 - -# See how we were called. -case "$1" in - start) - stat_busy "Starting YATE" - unset DISPLAY - - yate -d -p /var/run/yate.pid $OPTS - RETVAL=$? - if [ $RETVAL -gt 0 ]; then - stat_fail - else - add_daemon yate - touch /var/lock/yate - stat_done - fi - ;; - stop) - stat_busy "Stopping YATE" - [ -f /var/run/yate.pid ] && kill $(cat /var/run/yate.pid) > /dev/null 2>&1 - RETVAL=$? - if [ $RETVAL -gt 0 ]; then - stat_fail - else - rm -f /var/run/yate.pid - rm -f /var/lock/yate - rm_daemon yate - stat_done - fi - ;; - status) - [ -f /var/run/yate.pid ] && echo -e "Yate is running" || echo -e "Yate is not running" - ;; - restart) - $0 stop - sleep 1 - $1 start - ;; - condrestart) - if [ -f /var/lock/yate ]; then - $0 stop - $0 start - fi - ;; - reload) - pkill yate -HUP - RETVAL=$? - ;; - *) - echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}" - ;; -esac -exit $RETVAL |