syncthing-resume.service 201 B

123456789101112
  1. [Unit]
  2. Description=Restart Syncthing after resume
  3. Documentation=man:syncthing(1)
  4. After=sleep.target
  5. [Service]
  6. Type=oneshot
  7. ExecStart=-/usr/bin/pkill -HUP -x syncthing
  8. [Install]
  9. WantedBy=sleep.target