|
|
@ -64,6 +64,24 @@ restart() { |
|
|
start |
|
|
start |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
reset-restart() { |
|
|
|
|
|
cd /etc/kazoo/kamailio/dbtext/ |
|
|
|
|
|
stop |
|
|
|
|
|
|
|
|
|
|
|
head -n1 active_watchers > active_watchers.tmp |
|
|
|
|
|
mv -f active_watchers.tmp active_watchers |
|
|
|
|
|
|
|
|
|
|
|
head -n1 watchers > watchers.tmp |
|
|
|
|
|
mv -f watchers.tmp watchers |
|
|
|
|
|
|
|
|
|
|
|
head -n1 presentity > presentity.tmp |
|
|
|
|
|
mv -f presentity.tmp presentity |
|
|
|
|
|
|
|
|
|
|
|
chown kamailio:daemon * |
|
|
|
|
|
|
|
|
|
|
|
start |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
status() { |
|
|
status() { |
|
|
kamctl fifo ds_list |
|
|
kamctl fifo ds_list |
|
|
RETVAL=$? |
|
|
RETVAL=$? |
|
|
@ -110,6 +128,9 @@ case "$1" in |
|
|
restart) |
|
|
restart) |
|
|
restart |
|
|
restart |
|
|
;; |
|
|
;; |
|
|
|
|
|
reset-restart) |
|
|
|
|
|
reset-restart |
|
|
|
|
|
;; |
|
|
status) |
|
|
status) |
|
|
status |
|
|
status |
|
|
;; |
|
|
;; |
|
|
@ -117,7 +138,7 @@ case "$1" in |
|
|
check_config |
|
|
check_config |
|
|
;; |
|
|
;; |
|
|
*) |
|
|
*) |
|
|
echo $"Usage: $0 {prepare|start|background|stop|restart|status|check|pid}" |
|
|
|
|
|
|
|
|
echo $"Usage: $0 {prepare|start|background|stop|restart|reset-restart|status|check|pid}" |
|
|
esac |
|
|
esac |
|
|
|
|
|
|
|
|
exit ${RETVAL} |
|
|
exit ${RETVAL} |