From af1fbda892f8299fb74033419f6d1b71ff4ab353 Mon Sep 17 00:00:00 2001 From: Stefan Tatschner Date: Fri, 25 Sep 2015 23:05:11 +0200 Subject: [PATCH] Pull syncthing-inotify.service as an optional dep This patch adds syncthing-inotify.service as an optional dependency to syncthing.service. That means, if syncthing-inotify.service is available, it is started and stopped with syncthing. See discussion here: https://forum.syncthing.net/t/gnome-shell-extension-syncthing-icon/5759 --- etc/linux-systemd/system/syncthing@.service | 1 + etc/linux-systemd/user/syncthing.service | 1 + 2 files changed, 2 insertions(+) diff --git a/etc/linux-systemd/system/syncthing@.service b/etc/linux-systemd/system/syncthing@.service index abd0a5122..6a85e401a 100644 --- a/etc/linux-systemd/system/syncthing@.service +++ b/etc/linux-systemd/system/syncthing@.service @@ -2,6 +2,7 @@ Description=Syncthing - Open Source Continuous File Synchronization for %I Documentation=http://docs.syncthing.net/ After=network.target +Wants=syncthing-inotify@.service [Service] User=%i diff --git a/etc/linux-systemd/user/syncthing.service b/etc/linux-systemd/user/syncthing.service index 8e39d10ab..c765f7274 100644 --- a/etc/linux-systemd/user/syncthing.service +++ b/etc/linux-systemd/user/syncthing.service @@ -2,6 +2,7 @@ Description=Syncthing - Open Source Continuous File Synchronization Documentation=http://docs.syncthing.net/ After=network.target +Wants=syncthing-inotify.service [Service] Environment=STNORESTART=yes