backitup restore patch

This commit is contained in:
buanet
2022-07-05 12:14:00 +02:00
parent d1ed0a251a
commit f73e05c3aa
3 changed files with 9 additions and 2 deletions

View File

@@ -54,13 +54,16 @@ enable_maintenance() {
if [[ "$killbyname" == yes ]]; then
# undocumented option, only for use with backitup restore scripts
# stops iobroker by terminating js-controller process by name (the old way)
echo 'This command will activate maintenance mode and stop js-controller.'
echo 'Activating maintenance mode...'
echo 'maintenance' > "$healthcheck"
sleep 1
echo 'Done.'
echo -n 'Stopping ioBroker...'
stop_iob
pkill -u iobroker -f iobroker.js-controller
sleep 5
echo 'Done.'
return
fi