You are not logged in.

#51 2013-01-24 04:46:01

subi
Member
Registered: 2013-01-24
Posts: 1

Re: Systemd suspend/resume service files

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

#52 2013-09-02 15:05:48

AleXoundOS
Member
From: Russia
Registered: 2009-07-18
Posts: 31
Website

Re: Systemd suspend/resume service files

I think it should be mentioned in systemd wiki page (about possible pre-suspend and post-resume services).

Offline

#53 2013-09-02 16:26:26

fsckd
Forum Moderator
Registered: 2009-06-15
Posts: 3,574

Re: Systemd suspend/resume service files

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

Board footer

Powered by FluxBB