#!/bin/ksh # # $OpenBSD: vmd,v 1.11 2022/05/21 12:42:21 ajacoutot Exp $ daemon="/usr/sbin/vmd" . /etc/rc.d/rc.subr # Child will not return a config parsing error to the parent. rc_pre() { # use rc_exec here since daemon_flags may contain arguments with spaces rc_exec "${daemon} -n ${daemon_flags}" } rc_stop() { _rc_do vmctl stop -a -w pkill -T "${daemon_rtable}" -xf "${pexp}" } rc_cmd $1