aboutsummaryrefslogtreecommitdiff
path: root/.config/systemd
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2020-05-15 04:46:08 -0400
committertdro <tdro@users.noreply.github.com>2020-05-15 04:50:55 -0400
commit158b96c849f48b70d0173f766627dad69f0f1e3d (patch)
treebb6a2ab878c7ddb69afc5a1cf8c1860e82403f51 /.config/systemd
parent65430dcd1180836c26423d1e6dd2b4a8116e6445 (diff)
downloaddotfiles-158b96c849f48b70d0173f766627dad69f0f1e3d.tar.gz
dotfiles-158b96c849f48b70d0173f766627dad69f0f1e3d.tar.bz2
dotfiles-158b96c849f48b70d0173f766627dad69f0f1e3d.zip
.config/systemd/user/syncthing: Add
Diffstat (limited to '.config/systemd')
-rw-r--r--.config/systemd/user/syncthing.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/.config/systemd/user/syncthing.service b/.config/systemd/user/syncthing.service
new file mode 100644
index 0000000..7dda64f
--- /dev/null
+++ b/.config/systemd/user/syncthing.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=Syncthing - Open Source Continuous File Synchronization
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/env syncthing -no-browser -no-restart -logflags=0
+Restart=on-failure
+SuccessExitStatus=3 4
+RestartForceExitStatus=3 4
+SyslogIdentifier=syncthing
+
+# Hardening
+ProtectSystem=full
+PrivateTmp=true
+SystemCallArchitectures=native
+MemoryDenyWriteExecute=true
+NoNewPrivileges=true
+
+[Install]
+WantedBy=multi-user.target