From dc5627a2ef5af322155387600ad2ab5ffb88f221 Mon Sep 17 00:00:00 2001 From: Stefan Tatschner Date: Thu, 10 Sep 2015 22:11:15 +0200 Subject: [PATCH] Add systemd service file --- .../etc/linux-systemd/syncthing-relaysrv.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 cmd/relaysrv/etc/linux-systemd/syncthing-relaysrv.service 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 00000000..93852893 --- /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