mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
Merge pull request #2794 from rumpelsepp/master
systemd: Add syncthing-resume.service
This commit is contained in:
commit
0631e4395a
10
etc/linux-systemd/system/syncthing-resume.service
Normal file
10
etc/linux-systemd/system/syncthing-resume.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Restart Syncthing after resume
|
||||
After=suspend.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/pkill -HUP -x syncthing
|
||||
|
||||
[Install]
|
||||
WantedBy=suspend.target
|
Loading…
Reference in New Issue
Block a user