I am looking for an easy way to execute a shutdown script that backups a few directories via rsync. That means it must be finished before the network is down.
We’ve done that with halt.local and a ‘systemctl network restart’ at the beginning of the script file before - which worked fine with openSuSE 12.2.
I tried the same with 12.3 and it does not work anymore. First of all the halt-local.service needs a [Install] section now. Otherwise you can not enable the service and halt.local is ignored. But the ‘systemctl network restart’ workaround now prevents SuSE from continuing the shutdown process (Ctrl-Alt-Del continues it).
There must be an easy solution within the systemd system - but I can’t find it. I tried so many different scripts and services and just don’t get it to work.
So please - has anybody here a hint or a howto for me? I’m quite desperate at the moment…