summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-proxy/tayga/files/tayga.initd')
-rw-r--r--net-proxy/tayga/files/tayga.initd20
1 files changed, 20 insertions, 0 deletions
diff --git a/net-proxy/tayga/files/tayga.initd b/net-proxy/tayga/files/tayga.initd
new file mode 100644
index 00000000000..a0ad1dd3015
--- /dev/null
+++ b/net-proxy/tayga/files/tayga.initd
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+#
+
+description='tayga NAT64 gateway'
+pidfile=${pidfile:=/var/run/tayga.pid}
+user=${user:=nobody}
+group=${group:=nogroup}
+datadir=${datadir:=/var/db/tayga}
+
+command='/usr/sbin/tayga'
+command_args="--pidfile ${pidfile} -u ${user} -g ${group}"
+
+start_pre() {
+ checkpath --directory --owner ${user}:${group} ${datadir}
+ checkpath --owner ${user}:${group} ${datadir}/dynamic.map
+}
+
+