kamailio: fix init script
[feed/telephony.git] / net / kamailio-3.3.x / files / kamailio.init
index 5a382ae..dae4546 100644 (file)
@@ -1,12 +1,13 @@
 #!/bin/sh /etc/rc.common
-# Copyright (C) 2012 OpenWrt.org
-START=99 
-APP=kamailio
-BIN_FILE="/usr/sbin/"$APP
-PID_FILE="/var/run/"$APP".pid"
+# Copyright (C) 2014 OpenWrt.org
+
+START=99
+
+BIN_FILE=/usr/sbin/kamailio
+PID_FILE=/var/run/kamailio.pid
 
 start() {
-       start-stop-daemon -S -x $BIN_FILE -p $PID_FILE -b -m
+       start-stop-daemon -S -x $BIN_FILE -b -- -P $PID_FILE
 }
 
 stop() {