freebsd-ports/security/openssh/files/sshd.in
Pav Lucistnik 8e32407965 - Convert to OPTIONS
- Switch to rc_subr script

PR:		ports/96625
Submitted by:	Peter Thoenen <peter.thoenen@yahoo.com> <eol1@yahoo.com>
2006-06-09 21:54:03 +00:00

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"