From 7a3611f5caa5e34c1f2b582640f97b733110ae63 Mon Sep 17 00:00:00 2001 From: Parabola Date: Mon, 9 Jan 2012 13:47:51 +0000 Subject: Mon Jan 9 13:47:49 UTC 2012 --- community-testing/opensips/opensips.init | 50 -------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 community-testing/opensips/opensips.init (limited to 'community-testing/opensips/opensips.init') diff --git a/community-testing/opensips/opensips.init b/community-testing/opensips/opensips.init deleted file mode 100644 index 1c883c4c2..000000000 --- a/community-testing/opensips/opensips.init +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -BINNAME=opensips -OSRDIR=/usr/sbin -OPENSIPS=$OSRDIR/$BINNAME - -TMPDIR=/var/tmp -CORE=$TMPDIR/core - -ETC=/etc/opensips/opensips.cfg -PIDFILE=/var/run/opensips.pid - -case "$1" in - start) - stat_busy "Starting OpenSIPS server" - cd $TMPDIR - $OPENSIPS -f $ETC -w $TMPDIR -P $PIDFILE 2>&1 > /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon opensips - stat_done - fi - ;; - stop) - stat_busy "Stopping OpenSIPS server" - if [ -r $PIDFILE ] - then - cat $PIDFILE | xargs kill - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon opensips - stat_done - fi - else - stat_fail - fi - ;; - restart) - $0 stop - sleep 3 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -- cgit v1.2.3-54-g00ecf