#!/bin/sh
#
# $OpenBSD: iked,v 1.3 2015/12/19 13:45:12 ajacoutot Exp $

daemon="/sbin/iked"

. /etc/rc.d/rc.subr

pexp="iked: parent.*"

rc_pre() {
	[ X"${sasyncd_flags}" != X"NO" ] && \
		daemon_flags="-S ${daemon_flags}"
	#return 0
	# child will not return a config parsing error to the parent
	${daemon} -n ${daemon_flags}
}

rc_cmd $1
