diff options
Diffstat (limited to 'main/kamailio/kamailio.initd')
-rw-r--r-- | main/kamailio/kamailio.initd | 8 |
1 files changed, 8 insertions, 0 deletions
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 $? +} |