summaryrefslogtreecommitdiff
path: root/etc/rc.d/iked
blob: 6f1d8ff4e63ab9d8963ba9622ca3d878e03cde94 (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.6 2018/01/11 22:44:44 rpe Exp $

daemon="/sbin/iked"

. /etc/rc.d/rc.subr

pexp="iked: parent.*"

# Child will not return a config parsing error to the parent.
rc_pre() {
	[[ ${sasyncd_flags} != NO ]] &&
		daemon_flags="-S ${daemon_flags}"

	${daemon} -n ${daemon_flags}
}

rc_cmd $1