diff options
author | Stefan Tatschner <rumpelsepp@sevenbyte.org> | 2015-09-25 23:05:11 +0200 |
---|---|---|
committer | Stefan Tatschner <rumpelsepp@sevenbyte.org> | 2015-09-25 23:39:03 +0200 |
commit | af1fbda892f8299fb74033419f6d1b71ff4ab353 (patch) | |
tree | e045d36ef5b4c24afde312675517bb7ecd56d989 /etc | |
parent | fd38fb684afddf8f6dae1555758ecbd60df61ab9 (diff) | |
download | syncthing-af1fbda892f8299fb74033419f6d1b71ff4ab353.tar.gz syncthing-af1fbda892f8299fb74033419f6d1b71ff4ab353.zip |
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
Diffstat (limited to 'etc')
-rw-r--r-- | etc/linux-systemd/system/syncthing@.service | 1 | ||||
-rw-r--r-- | etc/linux-systemd/user/syncthing.service | 1 |
2 files changed, 2 insertions, 0 deletions
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 |