summaryrefslogtreecommitdiff
path: root/testing/ovn/ovn-controller.initd
blob: 12a75893bb6a447bb70d5a317b91ea890493d333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/openrc-run

command="/usr/share/ovn/scripts/ovn-ctl"
command_args="start_controller --ovn-manage-ovsdb=no --no-monitor $OVN_CTL_OPTS"
command_background="yes"
pidfile="/run/ovn/$RC_SVCNAME.pid"
description="Open Virtual Network host control daemon"

depend() {
	need net
	after firewall
}

start_pre() {
	checkpath --directory "${pidfile%/*}"
}

stop() {
	ebegin "Stopping $RC_SVCNAME"
	$command stop_controller --no-monitor
	eend $?
}