summaryrefslogtreecommitdiff
path: root/packages/net-p2p/syncthing/files/systemd/syncthing.service
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-07-01 10:14:24 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-07-01 10:14:24 +0300
commit3d253e28e6a7e88619cef8a31dd39285a154b1b0 (patch)
treee75a1b249543319889759c0ee3621e7fe067a1ee /packages/net-p2p/syncthing/files/systemd/syncthing.service
parent0933d26af0cac6184aad0ebb3c804899d34c6bd4 (diff)
synchting-scm added, a bit tricky script, but looks like it working fine
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