diff options
author | 2019-02-05 21:28:57 -0800 | |
---|---|---|
committer | 2019-02-13 13:16:19 -0800 | |
commit | 5e62644dd3ff594450c2a66b25e5ce4a761b6535 (patch) | |
tree | 6642d8dd454967b322b17bc12394ea2ba3bf88e5 /net-proxy/tayga/files | |
parent | flag-o-matic.eclass: whitelist -mstackrealign for 'strip-flags' (diff) | |
download | gentoo-5e62644dd3ff594450c2a66b25e5ce4a761b6535.tar.gz gentoo-5e62644dd3ff594450c2a66b25e5ce4a761b6535.tar.bz2 gentoo-5e62644dd3ff594450c2a66b25e5ce4a761b6535.zip |
net-proxy/tayga: add init script
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
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 +} + + |