kamailio: fix init script, closing #18201
The init script now correctly uses PID files to kill kamailio on stop. Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
This commit is contained in:
parent
99f11a8320
commit
636f71a677
4 changed files with 16 additions and 14 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=kamailio3
|
PKG_NAME:=kamailio3
|
||||||
PKG_VERSION:=3.3.7
|
PKG_VERSION:=3.3.7
|
||||||
PKG_RELEASE:=5
|
PKG_RELEASE:=6
|
||||||
|
|
||||||
PKG_SOURCE_URL:=http://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src/
|
PKG_SOURCE_URL:=http://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src/
|
||||||
PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
|
PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (C) 2012 OpenWrt.org
|
# Copyright (C) 2014 OpenWrt.org
|
||||||
START=99
|
|
||||||
APP=kamailio
|
START=99
|
||||||
BIN_FILE="/usr/sbin/"$APP
|
|
||||||
PID_FILE="/var/run/"$APP".pid"
|
BIN_FILE=/usr/sbin/kamailio
|
||||||
|
PID_FILE=/var/run/kamailio.pid
|
||||||
|
|
||||||
start() {
|
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() {
|
stop() {
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=kamailio4
|
PKG_NAME:=kamailio4
|
||||||
PKG_VERSION:=4.1.5
|
PKG_VERSION:=4.1.5
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE_URL:=http://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src/
|
PKG_SOURCE_URL:=http://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src/
|
||||||
PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
|
PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (C) 2012 OpenWrt.org
|
# Copyright (C) 2014 OpenWrt.org
|
||||||
START=99
|
|
||||||
APP=kamailio
|
START=99
|
||||||
BIN_FILE="/usr/sbin/"$APP
|
|
||||||
PID_FILE="/var/run/"$APP".pid"
|
BIN_FILE=/usr/sbin/kamailio
|
||||||
|
PID_FILE=/var/run/kamailio.pid
|
||||||
|
|
||||||
start() {
|
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() {
|
stop() {
|
||||||
|
|
Loading…
Reference in a new issue