summaryrefslogtreecommitdiff
path: root/packages/net-p2p/syncthing/files/systemd/syncthing.service
diff options
context:
space:
mode:
Diffstat (limited to 'packages/net-p2p/syncthing/files/systemd/syncthing.service')
-rw-r--r--packages/net-p2p/syncthing/files/systemd/syncthing.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/net-p2p/syncthing/files/systemd/syncthing.service b/packages/net-p2p/syncthing/files/systemd/syncthing.service
new file mode 100644
index 0000000..e5ff0ae
--- /dev/null
+++ b/packages/net-p2p/syncthing/files/systemd/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 \ No newline at end of file