[systemd-devel] possible bugs w/ defining .mount services
Jonathan Dowland
jon+systemd-devel at alcopop.org
Mon Jan 25 10:04:01 PST 2016
Hi,
Am I wrong to believe that with one can interchangeably refer to .mount
units via their paths? It seems to work inconsistently. (this all with
version 215).
In a service, if I specify
BindsTo=backup.mount
Where backup.mount is a systemd unit, the service is correctly stopped
when the path is unmounted. If I use
BindsTo=/backup
It does not. (Not with 'systemctl stop /backup').
Similarly, if I use the backup.mount form for Before=, things work as
they should, but Before=/backup results in
Failed to add dependency on /backup, ignoring: Invalid argument
Many thanks,
--
Jonathan Dowland
More information about the systemd-devel
mailing list