summaryrefslogtreecommitdiff
path: root/pcr/syncthing/syncthing@.service
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-06-05 13:40:02 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-06-05 13:40:02 -0300
commit8ef2470e15ed1a7ee4b7b9fa56f9d3503e271aad (patch)
treef9e4298044e164b84c0c7246961468e3c7fad75e /pcr/syncthing/syncthing@.service
parent1c5020a76492707a59fe684bc5294e6a34124e5a (diff)
syncthing: it goes on pcr
Diffstat (limited to 'pcr/syncthing/syncthing@.service')
-rw-r--r--pcr/syncthing/syncthing@.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/pcr/syncthing/syncthing@.service b/pcr/syncthing/syncthing@.service
new file mode 100644
index 000000000..93ed40e14
--- /dev/null
+++ b/pcr/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