2014-11-19 08:42:05 +00:00
|
|
|
[Unit]
|
2015-02-02 00:11:41 +00:00
|
|
|
Description=Syncthing - Open Source Continuous File Synchronization for %I
|
2016-03-16 13:09:01 +00:00
|
|
|
Documentation=man:syncthing(1)
|
2019-04-29 19:36:46 +00:00
|
|
|
After=network.target
|
2014-11-19 08:42:05 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=%i
|
2015-12-15 07:38:08 +00:00
|
|
|
ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0
|
2014-11-19 08:46:14 +00:00
|
|
|
Restart=on-failure
|
2020-05-12 08:01:10 +00:00
|
|
|
RestartSec=5
|
2015-12-15 07:38:08 +00:00
|
|
|
SuccessExitStatus=3 4
|
2015-02-01 22:55:54 +00:00
|
|
|
RestartForceExitStatus=3 4
|
2014-11-19 08:42:05 +00:00
|
|
|
|
2018-12-07 13:58:12 +00:00
|
|
|
# Hardening
|
|
|
|
ProtectSystem=full
|
|
|
|
PrivateTmp=true
|
|
|
|
SystemCallArchitectures=native
|
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
NoNewPrivileges=true
|
|
|
|
|
2014-11-19 08:42:05 +00:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|