Re: [systemd-devel] mount-on-demand for backups; hooks for indicating success/failure

2017-04-05 Thread Jonathan Dowland
On Fri, Mar 31, 2017 at 12:01:11PM +0200, Lennart Poettering wrote: > On recent systemd versions you can plug in a script in ExecStop= of > your backup service, and check the $SERVICE_RESULT env var which tells > you the success state of the service, which you can then use to set > any LEDs you

Re: [systemd-devel] mount-on-demand for backups; hooks for indicating success/failure

2017-03-31 Thread Lennart Poettering
On Thu, 09.03.17 15:53, Jonathan Dowland (jon+systemd-de...@alcopop.org) wrote: > Hey, > > I have some backup services which depend on mounts. I want those > filesystems unmounted when the backup jobs are not running. This is > easily achieved with StopWhenUnneeded. > > I also want to trigger

Re: [systemd-devel] mount-on-demand for backups; hooks for indicating success/failure

2017-03-10 Thread Michal Sekletar
On Thu, Mar 9, 2017 at 4:53 PM, Jonathan Dowland wrote: > Hey, > > I have some backup services which depend on mounts. I want those > filesystems unmounted when the backup jobs are not running. This is > easily achieved with StopWhenUnneeded. > > I also want to

[systemd-devel] mount-on-demand for backups; hooks for indicating success/failure

2017-03-09 Thread Jonathan Dowland
Hey, I have some backup services which depend on mounts. I want those filesystems unmounted when the backup jobs are not running. This is easily achieved with StopWhenUnneeded. I also want to trigger the backup jobs to start when I attach my external HDD. This is reasonably simple by adding