[Pkg-voip-commits] [resiprocate] 13/14: Make the init scripts more suitable for template use

Daniel Pocock pocock at moszumanska.debian.org
Sun Jan 12 10:44:38 UTC 2014


This is an automated email from the git hooks/post-receive script.

pocock pushed a commit to branch master
in repository resiprocate.

commit ec5f45fb264908993ee83ad6c220518af10ef3d6
Author: Daniel Pocock <daniel at pocock.com.au>
Date:   Sun Jan 12 09:47:45 2014 +0100

    Make the init scripts more suitable for template use
---
 debian/repro.init                   | 6 +++---
 debian/resiprocate-turn-server.init | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/debian/repro.init b/debian/repro.init
index 1a824ec..f4938f2 100644
--- a/debian/repro.init
+++ b/debian/repro.init
@@ -11,12 +11,12 @@
 
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 NAME=repro
+BIN=repro
 DESC="SIP proxy"
-DAEMON=/usr/sbin/$NAME
+DAEMON=/usr/sbin/$BIN
 USER=repro
 GROUP=repro
-PIDFILE="/var/run/$NAME/$NAME.pid"
-#PIDFILE="/var/run/${NAME}.pid"
+PIDFILE="/var/run/$BIN/$NAME.pid"
 PIDFILE_DIR=`dirname $PIDFILE`
 
 KILL_SPEC=TERM/20/KILL/5
diff --git a/debian/resiprocate-turn-server.init b/debian/resiprocate-turn-server.init
index 2981d6c..0415ba9 100644
--- a/debian/resiprocate-turn-server.init
+++ b/debian/resiprocate-turn-server.init
@@ -11,12 +11,12 @@
 
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 NAME=reTurnServer
+BIN=reTurnServer
 DESC="TURN relay"
-DAEMON=/usr/sbin/$NAME
+DAEMON=/usr/sbin/$BIN
 USER=return
 GROUP=return
-PIDFILE="/var/run/$NAME/$NAME.pid"
-#PIDFILE="/var/run/reTurnServer.pid"
+PIDFILE="/var/run/$BIN/$NAME.pid"
 PIDFILE_DIR=`dirname $PIDFILE`
 
 . /lib/lsb/init-functions

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/resiprocate.git



More information about the Pkg-voip-commits mailing list