[systemd-devel] Fwd: best way to handle service restarts after hibernate/suspend?

孙冰 subi.the.dream.walker at gmail.com
Wed Aug 7 23:12:30 PDT 2013


I use this:
----------------------------------------
[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
-----------------------------------------



More information about the systemd-devel mailing list