aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/kamailio/APKBUILD4
-rw-r--r--main/kamailio/kamailio.initd8
2 files changed, 10 insertions, 2 deletions
diff --git a/main/kamailio/APKBUILD b/main/kamailio/APKBUILD
index 68071b7f35..7a9bebd314 100644
--- a/main/kamailio/APKBUILD
+++ b/main/kamailio/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=kamailio
pkgver=3.1.1
-pkgrel=2
+pkgrel=3
pkgdesc="Open Source SIP Server"
url="http://www.kamailio.org/"
pkgusers="kamailio"
@@ -156,7 +156,7 @@ unixodbc() {
md5sums="f0bf80cfae676c086f827b499eaf21cd kamailio-3.1.1_src.tar.gz
a3c959ec568c43a905710e7d25cd8c25 kamailio.cfg
-81100c479890a2a8c2628db22fdd1a0c kamailio.initd
+c0dc4e13d9e57feb99f016d3ee443c0b kamailio.initd
3cb2eaeed81e4cdb1830f06a88de19e7 kamailio-3.1-backslash.patch
199df21eaa4856dcacdcc438f72765f1 sqlite.patch
ec66753ab24a9a14ff315ac4b3d352cc kamailio-3.1-invalid_type_3_or_nul_0_version_columns_for_trusted.patch"
diff --git a/main/kamailio/kamailio.initd b/main/kamailio/kamailio.initd
index ee4e2ecef1..98ba6c761d 100644
--- a/main/kamailio/kamailio.initd
+++ b/main/kamailio/kamailio.initd
@@ -3,6 +3,8 @@
daemon=/usr/sbin/kamailio
pidfile=/var/run/kamailio/kamailio.pid
+opts="reload"
+
depend() {
need net
after firewall
@@ -24,3 +26,9 @@ stop() {
start-stop-daemon --stop --quiet --pidfile $pidfile
eend $?
}
+
+reload() {
+ ebegin "Reloading Kamailio"
+ echo mi_dg dp_reload | sercmd 2>/dev/null
+ eend $?
+}