You are not logged in.
We can put the suspend-resume logic in one service file. Say, for wicd suspend/resume:
[Unit]
Description=Wicd sleep hook
Before=sleep.target
StopWhenUnneeded=yes
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=-/usr/share/wicd/daemon/suspend.py
ExecStop=-/usr/share/wicd/daemon/autoconnect.py
[Install]
WantedBy=sleep.target
Last edited by subi (2013-01-24 04:46:29)
Offline
I think it should be mentioned in systemd wiki page (about possible pre-suspend and post-resume services).
Offline
Hi AleXoundOS, mention it in the talk page if you can not add it and please do not necro-bump. Closing.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline