syncthing/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service

26 lines
577 B
SYSTEMD
Raw Normal View History

2015-09-10 20:11:15 +00:00
[Unit]
Description=Syncthing Relay Server
2015-09-10 20:11:15 +00:00
After=network.target
Documentation=man:strelaysrv(1)
2015-09-10 20:11:15 +00:00
[Service]
WorkingDirectory=/var/lib/syncthing-relaysrv
EnvironmentFile=/etc/default/syncthing-relaysrv
ExecStart=/usr/bin/strelaysrv -nat=${NAT} $RELAYSRV_OPTS
2015-09-10 20:11:15 +00:00
# Hardening
User=syncthing-relaysrv
Group=syncthing
ProtectSystem=strict
ReadWritePaths=/var/lib/syncthing-relaysrv
NoNewPrivileges=true
2015-09-10 20:11:15 +00:00
PrivateTmp=true
PrivateDevices=true
2015-09-10 20:11:15 +00:00
ProtectHome=true
SystemCallArchitectures=native
MemoryDenyWriteExecute=true
2015-09-10 20:11:15 +00:00
[Install]
WantedBy=multi-user.target
Alias=syncthing-relaysrv.service