mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-19 19:45:12 +00:00
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:
parent
601a4fac1a
commit
ef35a7a4cb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user