mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
26 lines
569 B
Desktop File
26 lines
569 B
Desktop File
[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
|