2014-11-19 16:42:05 +08:00
|
|
|
[Unit]
|
2015-02-02 01:11:41 +01:00
|
|
|
Description=Syncthing - Open Source Continuous File Synchronization
|
2016-03-16 13:09:01 +00:00
|
|
|
Documentation=man:syncthing(1)
|
2014-11-19 16:42:05 +08:00
|
|
|
|
|
|
|
[Service]
|
2021-02-11 12:18:47 +01:00
|
|
|
ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --logflags=0
|
2014-11-19 16:46:14 +08:00
|
|
|
Restart=on-failure
|
2020-05-12 10:01:10 +02:00
|
|
|
RestartSec=5
|
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
|
|
|
|
SystemCallArchitectures=native
|
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
NoNewPrivileges=true
|
|
|
|
|
2014-11-19 16:42:05 +08:00
|
|
|
[Install]
|
2015-02-02 01:11:41 +01:00
|
|
|
WantedBy=default.target
|