Browse Source

backup ramdisk on shutdown

4.2
swysor 8 years ago
parent
commit
84187b3a93
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      system/sbin/kazoo-kamailio

+ 5
- 0
system/sbin/kazoo-kamailio View File

@ -85,6 +85,11 @@ start() {
stop() { stop() {
killall ${BIN_FILE} killall ${BIN_FILE}
RETVAL=$? RETVAL=$?
if mount_point_exists; then
if [ -f /etc/kazoo/kamailio/kazoo.db ]; then
mv /etc/kazoo/kamailio/db /etc/kazoo/kamailio/db-old
fi
fi
} }
restart() { restart() {


Loading…
Cancel
Save