summaryrefslogtreecommitdiff
path: root/etc/rc.d/iked
blob: 405f0adbe4a5c64fc7db1d293a183a684d766883 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/ksh
#
# $OpenBSD: iked,v 1.5 2018/01/11 21:09:26 rpe Exp $

daemon="/sbin/iked"

. /etc/rc.d/rc.subr

pexp="iked: parent.*"

rc_pre() {
	[[ ${sasyncd_flags} != 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