summaryrefslogtreecommitdiff
path: root/etc/rc.d/iked
blob: d9a0d285557fafadc84b37aca70753aa913da2fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/ksh
#
# $OpenBSD: iked,v 1.7 2019/01/21 01:41:16 claudio 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}"

	# use rcexec here since daemon_flags may contain arguments with spaces
	${rcexec} "${daemon} -n ${daemon_flags}"
}

rc_cmd $1