I have a oneshot service to restore backups but while this happens I would like to automatically stop all services that read those files.
Conflict unit config open makes sense for that, but how do I restart the service after the backup is done?
Ideally I would also like to run another oneshot before and after this oneshot, while the service is still running.
So visualized something like this:
|step 1||step 2||step 3|
|program.service: active||program.service: inactive||program.service: active|