summaryrefslogtreecommitdiff
path: root/community/syncthing/syncthing@.service
diff options
context:
space:
mode:
Diffstat (limited to 'community/syncthing/syncthing@.service')
-rw-r--r--community/syncthing/syncthing@.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/syncthing/syncthing@.service b/community/syncthing/syncthing@.service
new file mode 100644
index 000000000..93ed40e14
--- /dev/null
+++ b/community/syncthing/syncthing@.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Syncthing service for %i
+After=network.target
+
+[Service]
+User=%i
+Environment=STNORESTART=yes
+ExecStart=/usr/bin/syncthing
+Restart=always
+
+[Install]
+WantedBy=multi-user.target