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

Jörg Thalheim joerg at higgsboson.tk
Sat Jul 13 23:59:32 PDT 2013


Am 12.07.2013 00:51, schrieb Lennart Poettering:
> On Wed, 10.07.13 21:04, Jörg Thalheim (joerg at 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 this
>> does not sounds to trivial compared to your serious problems, but you
>> might come up with other use cases).
> It's probably a better idea to patch the client to use a delay inhibitor
> for this:
>
> http://www.freedesktop.org/wiki/Software/systemd/inhibit/

Inhibitor locks seams to be the perfect answer.
Is "systemd --user" aware of this feature?
It would be useful to spawn a service/unit before suspend/shutdown.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 553 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130714/b26c7d38/attachment.pgp>


More information about the systemd-devel mailing list