I was reading doc and it is still unclear for me, whether the following is possible to accomplish:
service defined in ~/.config/systemd/user/task.service
that depends on system sleep.target
(~/.config/systemd/user/sleep.target.wants/task.service
).
Now I expect task.service
to start when I run $ systemctl suspend
, however task.service
is not started.
I'm running debian, with systemd version 208, systemd --user
configured more or less as described on the ArchWiki.
I wonder whether my scenario could be implemented with systemd at all, or are --system
and --user
completely isolated by design so that --user
unit may not be a dependency of a --system
unit.
In case it is possible, what might be the problem in my case?