You are not logged in.

#1 2015-09-28 10:02:09

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Need to trigger a systemd user service before sleep

I need to have a user service run ExecStart=/foo/bar before the system goes into suspend or hibernate.  My understanding is that the sleep.target works for this when using system services, but not for user services.  Is there a standard way to achieve this for user services that I haven't found?  Thanks.

Offline

Board footer

Powered by FluxBB