summaryrefslogtreecommitdiff
path: root/net-p2p/syncthing/files/strelaysrv.initd-r1
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2021-12-22 14:08:05 +0000
committerV3n3RiX <venerix@koprulu.sector>2021-12-22 14:08:05 +0000
commit93a93e9a3b53c1a73142a305ea1f8136846942ee (patch)
treeb9791a06ab3284e27b568412c59316c66240c682 /net-p2p/syncthing/files/strelaysrv.initd-r1
parent2771f79232c273bc2a57d23bf335dd81ccf6af28 (diff)
gentoo resync : 22.12.2021
Diffstat (limited to 'net-p2p/syncthing/files/strelaysrv.initd-r1')
-rw-r--r--net-p2p/syncthing/files/strelaysrv.initd-r127
1 files changed, 27 insertions, 0 deletions
diff --git a/net-p2p/syncthing/files/strelaysrv.initd-r1 b/net-p2p/syncthing/files/strelaysrv.initd-r1
new file mode 100644
index 000000000000..3a8b36eda99c
--- /dev/null
+++ b/net-p2p/syncthing/files/strelaysrv.initd-r1
@@ -0,0 +1,27 @@
+#!/sbin/openrc-run
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+SR_USER=strelaysrv
+SR_GROUP=syncthing
+SR_HOMEDIR=/var/lib/syncthing-relaysrv
+SR_LOGFILE=/var/log/syncthing/relaysrv.log
+
+
+description="Relay service for syncthing"
+command="/usr/libexec/syncthing/strelaysrv"
+command_args="${SR_OPTS}"
+pidfile="/run/syncthing-relaysrv.pid"
+command_background="yes"
+command_user="${SR_USER}:${SR_GROUP}"
+directory="${SR_HOMEDIR}"
+output_log="${SR_LOGFILE}"
+error_log="${SR_LOGFILE}"
+
+depend() {
+ need net
+}
+
+start_pre() {
+ checkpath -q -d -o ${SR_USER}:${SR_GROUP} ${SR_HOMEDIR}
+ checkpath -q -f -o ${SR_USER}:${SR_GROUP} ${SR_LOGFILE}
+}