mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-18 20:16:51 +02:00
22 lines
417 B
Bash
22 lines
417 B
Bash
#!/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 $?
|
|
}
|