diff --git a/cmd/relaysrv/etc/linux-systemd/syncthing-relaysrv.service b/cmd/relaysrv/etc/linux-systemd/syncthing-relaysrv.service new file mode 100644 index 000000000..93852893d --- /dev/null +++ b/cmd/relaysrv/etc/linux-systemd/syncthing-relaysrv.service @@ -0,0 +1,16 @@ +[Unit] +Description=Syncthing relay server +After=network.target + +[Service] +User=syncthing-relaysrv +Group=syncthing-relaysrv +ExecStart=/usr/bin/syncthing-relaysrv + +PrivateTmp=true +ProtectSystem=full +ProtectHome=true +NoNewPrivileges=true + +[Install] +WantedBy=multi-user.target