summaryrefslogtreecommitdiff
path: root/etc/rc.d/switchd
blob: bafb7c2c6ed5beb6b10083998dbdae0bcfd3cc6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/ksh
#
# $OpenBSD: switchd,v 1.4 2019/01/21 01:41:16 claudio Exp $

daemon="/usr/sbin/switchd"

. /etc/rc.d/rc.subr

# Child will not return a config loading error to the parent.
rc_pre() {
	# use rcexec here since daemon_flags may contain arguments with spaces
	${rcexec} "${daemon} -n ${daemon_flags}"
}

rc_cmd $1