mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 15:20:56 +00:00
26 lines
569 B
SYSTEMD
26 lines
569 B
SYSTEMD
|
[Unit]
|
||
|
Description=Syncthing Discovery Server
|
||
|
After=network.target
|
||
|
Documentation=man:stdiscosrv(1)
|
||
|
|
||
|
[Service]
|
||
|
WorkingDirectory=/var/lib/syncthing-discosrv
|
||
|
EnvironmentFile=/etc/default/syncthing-discosrv
|
||
|
ExecStart=/usr/bin/stdiscosrv $DISCOSRV_OPTS
|
||
|
|
||
|
# Hardening
|
||
|
User=syncthing-discosrv
|
||
|
Group=syncthing
|
||
|
ProtectSystem=strict
|
||
|
ReadWritePaths=/var/lib/syncthing-discosrv
|
||
|
NoNewPrivileges=true
|
||
|
PrivateTmp=true
|
||
|
PrivateDevices=true
|
||
|
ProtectHome=true
|
||
|
SystemCallArchitectures=native
|
||
|
MemoryDenyWriteExecute=true
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
Alias=syncthing-discosrv.service
|