My first post on this forum .
I have the following problem: when running my backup script (which calls raspiBackup) it terminates openhab (via systemctl), which in turn, terminates my backup script.
nohup is supposed to detach my script from the command line it’s called from, unfortunately it still receives a SIGTERM and stops before finishing. But even without the nohup part (and the & of course), I can’t get it to work.
Is there any way I can tell openhab to execute a script and then leave it alone, no matter what?
Thanks for your reply, I just tested your suggestion, unfortunately a timeout it does not solve my problem.
The script basically mounts a network share and stops services which might interrupt the backup process, including openhab, and then proceeds to the actual backing up. Once it tells openhab to shut down though, openhab in turn shuts my script down, preventing it from doing it’s job.
I would prefer to solve this in openhab itself, but any hints to a os-level solution are welcome as well, of course.
Thanks for the link, didn’t see that.
cron is probably the way to go. A switch for a quick backup before any major tinkering would be quite comfortable though
I will settle for the regular backup for now then. Still, any more ideas are welcome.