summaryrefslogtreecommitdiffstats
path: root/main/kamailio
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2011-02-18 15:35:49 +0000
committerLeonardo Arena <rnalrd@gmail.com>2011-02-18 15:43:20 +0000
commit8a69474721a2f59396cd6830a40e0245ec968ab1 (patch)
tree2d72a4aef6e53b301b4889b23bd6e7bfabf6b207 /main/kamailio
parenta0d0009e85517245b07c2fd3c64f80db37ab29b6 (diff)
downloadaports-8a69474721a2f59396cd6830a40e0245ec968ab1.tar.bz2
aports-8a69474721a2f59396cd6830a40e0245ec968ab1.tar.xz
main/kamailio: reload option added to initd
Diffstat (limited to 'main/kamailio')
-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 68071b7f3..7a9bebd31 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 ee4e2ecef..98ba6c761 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 $?
+}