diff --git a/etc/linux-systemd/system/syncthing-resume.service b/etc/linux-systemd/system/syncthing-resume.service new file mode 100644 index 000000000..7baec5a5d --- /dev/null +++ b/etc/linux-systemd/system/syncthing-resume.service @@ -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