summaryrefslogtreecommitdiff
path: root/testing/ovn/ovn-ovsdb-server-nb.initd
blob: c04148bccedc0bb1e8dad17924b68dc125c15de1 (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="run_nb_ovsdb $OVN_CTL_OPTS"
command_background="yes"
pidfile="/run/ovn/$RC_SVCNAME.pid"
description="Open vSwitch database server for OVN Northbound database"

depend() {
	need net ovn-northd
	after firewall
}

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

stop() {
	ebegin "Stopping $RC_SVCNAME"
	$command stop_nb_ovsdb
	eend $?
}