1#!/bin/ksh 2# 3# $OpenBSD: vmd,v 1.10 2019/01/21 01:41:16 claudio Exp $ 4 5daemon="/usr/sbin/vmd" 6 7. /etc/rc.d/rc.subr 8 9# Child will not return a config parsing error to the parent. 10rc_pre() { 11 # use rcexec here since daemon_flags may contain arguments with spaces 12 ${rcexec} "${daemon} -n ${daemon_flags}" 13} 14 15rc_stop() { 16 _rc_do vmctl stop -a -w 17 pkill -T "${daemon_rtable}" -xf "${pexp}" 18} 19 20rc_cmd $1 21