#!/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() {