- Switch to rc_subr script PR: ports/96625 Submitted by: Peter Thoenen <peter.thoenen@yahoo.com> <eol1@yahoo.com>
27 lines
424 B
Bash
27 lines
424 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: sshd
|
|
# REQUIRE: NETWORKING SERVERS USR
|
|
# BEFORE: LOGIN
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable sshd
|
|
#
|
|
# sshd_enable (bool): Set to "NO" by default
|
|
# Set it to "YES" to enable sshd
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="sshd"
|
|
rcvar=${name}_enable
|
|
|
|
load_rc_config ${name}
|
|
|
|
: ${sshd_enable="NO"}
|
|
: ${sshd_pidfile="/var/run/sshd.pid"}
|
|
|
|
command="%%PREFIX%%/sbin/${name}"
|
|
|
|
run_rc_command "$1"
|
|
|