[BACK]Return to sshd CVS log [TXT][DIR] Up to [local] / src / etc / rc.d

File: [local] / src / etc / rc.d / sshd (download)

Revision 1.7, Mon Aug 29 19:14:25 2022 UTC (21 months, 1 week ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, HEAD
Changes since 1.6: +3 -3 lines

Use rc_configtest.

#!/bin/ksh
#
# $OpenBSD: sshd,v 1.7 2022/08/29 19:14:25 ajacoutot Exp $

daemon="/usr/sbin/sshd"

. /etc/rc.d/rc.subr

pexp="sshd: ${daemon}${daemon_flags:+ ${daemon_flags}} \[listener\].*"

rc_configtest() {
	${daemon} ${daemon_flags} -t
}

rc_cmd $1