2014-11-19 08:42:05 +00:00
|
|
|
[Unit]
|
2015-02-02 00:11:41 +00:00
|
|
|
Description=Syncthing - Open Source Continuous File Synchronization
|
2016-03-16 13:09:01 +00:00
|
|
|
Documentation=man:syncthing(1)
|
2021-03-28 12:14:10 +00:00
|
|
|
StartLimitIntervalSec=60
|
|
|
|
StartLimitBurst=4
|
2014-11-19 08:42:05 +00:00
|
|
|
|
|
|
|
[Service]
|
2021-02-11 11:18:47 +00:00
|
|
|
ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --logflags=0
|
2014-11-19 08:46:14 +00:00
|
|
|
Restart=on-failure
|
2021-03-07 14:25:55 +00:00
|
|
|
RestartSec=1
|
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
|
|
|
|
SystemCallArchitectures=native
|
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
NoNewPrivileges=true
|
|
|
|
|
2022-09-13 08:00:47 +00:00
|
|
|
# Elevated permissions to sync ownership (disabled by default),
|
|
|
|
# see https://docs.syncthing.net/advanced/folder-sync-ownership
|
|
|
|
#AmbientCapabilities=CAP_CHOWN CAP_FOWNER
|
|
|
|
|
2014-11-19 08:42:05 +00:00
|
|
|
[Install]
|
2015-02-02 00:11:41 +00:00
|
|
|
WantedBy=default.target
|