Re: [systemd-devel] Forward systemd's sleep.target to a systemd user session

2013-07-15 Thread Lennart Poettering
On Sun, 14.07.13 08:59, Jörg Thalheim (jo...@higgsboson.tk) wrote: > Am 12.07.2013 00:51, schrieb Lennart Poettering: > > On Wed, 10.07.13 21:04, Jörg Thalheim (jo...@higgsboson.tk) wrote: > > > >> How I can trigger sleep.target in systemd --user session? > > What precisely are you trying to do wi

Re: [systemd-devel] Forward systemd's sleep.target to a systemd user session

2013-07-14 Thread Jörg Thalheim
Am 12.07.2013 00:51, schrieb Lennart Poettering: > On Wed, 10.07.13 21:04, Jörg Thalheim (jo...@higgsboson.tk) wrote: > >> How I can trigger sleep.target in systemd --user session? > What precisely are you trying to do with this? >> My use case is to logout my jabber client before suspend (I hope t

Re: [systemd-devel] Forward systemd's sleep.target to a systemd user session

2013-07-11 Thread Lennart Poettering
On Wed, 10.07.13 21:04, Jörg Thalheim (jo...@higgsboson.tk) wrote: > How I can trigger sleep.target in systemd --user session? What precisely are you trying to do with this? > Can I use "systemctl --user" only at a login shell and not in a systemd > unit? Because using "systemd --user" from tty

[systemd-devel] Forward systemd's sleep.target to a systemd user session

2013-07-10 Thread Jörg Thalheim
How I can trigger sleep.target in systemd --user session? My naive approach was first: user-sleep@.service [Unit] Description=sleep.target of a systemd user session Before=sleep.target StopWhenUnneeded=yes [Service] Type=oneshot User=%I RemainAfterExit=yes ExecStart=/