summaryrefslogtreecommitdiff
blob: f184a29b336c26681b1fcfc43c5aa22f4b638aac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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:=/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
}