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