Hi,
i'd like to propose a few, simple changes to the init.d file for Debian: - for NAME use "basename $0", so a simple copy would result in a new $NAME
- use $NAME in the following variables: HOMEDIR=/var/run/$NAME PIDFILE=$HOMEDIR/$NAME.pid DEFAULTS=/etc/default/$NAME CFGFILE=/etc/$NAME/kamailio.cfg
I think those changes would help very much, in case you have multiple instances of Kamailio running on a single server (e.g. a Proxy-CSCF, Interrogating-CSCF and a Serving-CSCF).
What do you think? If nobody objects, i will change the init.d files for Debian accordingly.
Thanks, Carsten
+1. We are already doing that. Would be great to make it std On 29 Jun 2015 22:45, "Carsten Bock" carsten@ng-voice.com wrote:
Hi,
i'd like to propose a few, simple changes to the init.d file for Debian:
for NAME use "basename $0", so a simple copy would result in a new $NAME
use $NAME in the following variables:
HOMEDIR=/var/run/$NAME PIDFILE=$HOMEDIR/$NAME.pid DEFAULTS=/etc/default/$NAME CFGFILE=/etc/$NAME/kamailio.cfg
I think those changes would help very much, in case you have multiple instances of Kamailio running on a single server (e.g. a Proxy-CSCF, Interrogating-CSCF and a Serving-CSCF).
What do you think? If nobody objects, i will change the init.d files for Debian accordingly.
Thanks, Carsten
-- Carsten Bock CEO (Geschäftsführer)
ng-voice GmbH Schomburgstr. 80 D-22767 Hamburg / Germany
http://www.ng-voice.com mailto:carsten@ng-voice.com
Office +49 40 5247593-0 Fax +49 40 5247593-99
Sitz der Gesellschaft: Hamburg Registergericht: Amtsgericht Hamburg, HRB 120189 Geschäftsführer: Carsten Bock Ust-ID: DE279344284
Hier finden Sie unsere handelsrechtlichen Pflichtangaben: http://www.ng-voice.com/imprint/
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
On 06/29/2015 10:44 PM, Carsten Bock wrote:
Hi,
i'd like to propose a few, simple changes to the init.d file for Debian:
for NAME use "basename $0", so a simple copy would result in a new $NAME
use $NAME in the following variables:
HOMEDIR=/var/run/$NAME PIDFILE=$HOMEDIR/$NAME.pid DEFAULTS=/etc/default/$NAME CFGFILE=/etc/$NAME/kamailio.cfg
I think those changes would help very much, in case you have multiple instances of Kamailio running on a single server (e.g. a Proxy-CSCF, Interrogating-CSCF and a Serving-CSCF).
What do you think? If nobody objects, i will change the init.d files for Debian accordingly.
It's quite fine. Go ahead