Timeline for Systemd user unit that depends on system unit (sleep.target)
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 26, 2024 at 11:57 | comment | added | Sparhawk |
@Dynamite I didn't have to enable my-etc-service.service, and it still worked. However, I reckon it makes more sense to not list the services you want to run in ~/.config/systemd/user/suspend.target's Wants=, but instead put [Install] <newline> WantedBy=suspend.target into my-etc-service.service. This has the added advantage of putting all the dependency information in each new service file itself. In this case you would need to enable my-etc-service.service though.
|
|
| S Oct 4, 2023 at 21:33 | history | suggested | Kepi | CC BY-SA 4.0 |
fix wrong file name for user systemd target
|
| Oct 3, 2023 at 19:42 | review | Suggested edits | |||
| S Oct 4, 2023 at 21:33 | |||||
| May 20, 2023 at 13:02 | comment | added | Dynamite |
Thanks ! I made it work with graphical.target flawlessly. Just don't forget to also enable your user service with systemctl --user enable my-etc-service.service of course ;)
|
|
| S Aug 15, 2022 at 7:11 | review | First answers | |||
| Aug 29, 2022 at 7:16 | |||||
| S Aug 15, 2022 at 7:11 | history | answered | Daniel Pereira | CC BY-SA 4.0 |