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