summaryrefslogtreecommitdiff
path: root/etc/rc.d/iked
blob: 44861ace985e8d3324c6d8bc2e2eee5873907f6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/ksh
#
# $OpenBSD: iked,v 1.10 2022/09/04 06:57:13 ajacoutot Exp $

daemon="/sbin/iked"

. /etc/rc.d/rc.subr

pexp="iked: parent.*"

rc_configtest() {
	# use rc_exec here since daemon_flags may contain arguments with spaces
	rc_exec "${daemon} -n ${daemon_flags}"
}
rc_pre() {
	[[ ${sasyncd_flags} != NO ]] &&
		daemon_flags="-S ${daemon_flags}"
	return 0
}

rc_cmd $1