etc: linux-systemd: Use sleep.target in syncthing-resume.service

Skip-check: authors

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4037
This commit is contained in:
Benedikt Morbach 2017-03-12 15:21:12 +00:00 committed by Jakob Borg
parent 601a4fac1a
commit ef35a7a4cb

View File

@ -1,11 +1,11 @@
[Unit] [Unit]
Description=Restart Syncthing after resume Description=Restart Syncthing after resume
Documentation=man:syncthing(1) Documentation=man:syncthing(1)
After=suspend.target After=sleep.target
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=-/usr/bin/pkill -HUP -x syncthing ExecStart=-/usr/bin/pkill -HUP -x syncthing
[Install] [Install]
WantedBy=suspend.target WantedBy=sleep.target