diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-02-16 12:59:29 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-02-16 12:59:29 +0000 |
commit | 79599515788b85b18aa655e7b7f8cc05c1bbddd8 (patch) | |
tree | ade7cb031f363fad64c77139dea7aa3d81908537 /net-proxy/tayga/files | |
parent | 6bc2e4d7c5906e46a8f275a876ead6ec41aca5bb (diff) |
gentoo resync : 16.02.1018
Diffstat (limited to 'net-proxy/tayga/files')
-rw-r--r-- | net-proxy/tayga/files/tayga.confd | 2 | ||||
-rw-r--r-- | net-proxy/tayga/files/tayga.initd | 20 |
2 files changed, 22 insertions, 0 deletions
diff --git a/net-proxy/tayga/files/tayga.confd b/net-proxy/tayga/files/tayga.confd new file mode 100644 index 000000000000..c601c33e58d3 --- /dev/null +++ b/net-proxy/tayga/files/tayga.confd @@ -0,0 +1,2 @@ +# Should match the tayga.conf tun-device +#rc_need="net.nat64" diff --git a/net-proxy/tayga/files/tayga.initd b/net-proxy/tayga/files/tayga.initd new file mode 100644 index 000000000000..a0ad1dd30151 --- /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 +} + + |