aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nebula/nebula.initd
blob: 87c8d512736bbd237ca5bb29ef91a14602d29a7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/openrc-run
name=$RC_SVCNAME
description="Scalable overlay networking tool"
cfgfile="/etc/$RC_SVCNAME/config.yml"
command="/usr/bin/$RC_SVCNAME"
command_args="-config $cfgfile"
command_user="$RC_SVCNAME"
supervisor="supervise-daemon"

depend() {
	need net
	use logger dns
	after firewall
	provide nebula
}

start_pre() {
	$command -config $cfgfile -test
}