From 2e313716e5521c4fbf380f21ed8284d4c77e860a Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Wed, 17 Jul 2024 08:29:49 +0200 Subject: [PATCH] etc: Remove restart on suspend systemd service (ref #8448) (#9611) The option to do the same in our own monitor process has been removed a long time ago. --- build.go | 1 - etc/linux-systemd/system/syncthing-resume.service | 11 ----------- 2 files changed, 12 deletions(-) delete mode 100644 etc/linux-systemd/system/syncthing-resume.service diff --git a/build.go b/build.go index 6f76e4735..5f9968485 100644 --- a/build.go +++ b/build.go @@ -118,7 +118,6 @@ var targets = map[string]target{ {src: "man/syncthing-security.7", dst: "deb/usr/share/man/man7/syncthing-security.7", perm: 0644}, {src: "man/syncthing-versioning.7", dst: "deb/usr/share/man/man7/syncthing-versioning.7", perm: 0644}, {src: "etc/linux-systemd/system/syncthing@.service", dst: "deb/lib/systemd/system/syncthing@.service", perm: 0644}, - {src: "etc/linux-systemd/system/syncthing-resume.service", dst: "deb/lib/systemd/system/syncthing-resume.service", perm: 0644}, {src: "etc/linux-systemd/user/syncthing.service", dst: "deb/usr/lib/systemd/user/syncthing.service", perm: 0644}, {src: "etc/linux-sysctl/30-syncthing.conf", dst: "deb/usr/lib/sysctl.d/30-syncthing.conf", perm: 0644}, {src: "etc/firewall-ufw/syncthing", dst: "deb/etc/ufw/applications.d/syncthing", perm: 0644}, diff --git a/etc/linux-systemd/system/syncthing-resume.service b/etc/linux-systemd/system/syncthing-resume.service deleted file mode 100644 index 8881e7a2d..000000000 --- a/etc/linux-systemd/system/syncthing-resume.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Restart Syncthing after resume -Documentation=man:syncthing(1) -After=sleep.target - -[Service] -Type=oneshot -ExecStart=-/usr/bin/pkill -HUP -x syncthing - -[Install] -WantedBy=sleep.target