Set command_args to '-f ${sshd_conf_dir}/${name}.conf'.
This occurs before the first load_rc_config() so that it may be overridden by the user, and appears in single quotes so the variables don't get evaluated until the eval in run_rc_command(). Problem noted by Patrick Welche <prlw1@cam.ac.uk> in [bin/15912].
This commit is contained in:
parent
5ee7ac8886
commit
e512d5dcf7
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: sshd,v 1.13 2002/02/24 12:50:09 lukem Exp $
|
||||
# $NetBSD: sshd,v 1.14 2002/03/27 09:15:54 lukem Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: sshd
|
||||
|
@ -11,6 +11,7 @@
|
|||
name="sshd"
|
||||
rcvar=$name
|
||||
command="/usr/sbin/${name}"
|
||||
command_args='-f ${sshd_conf_dir}/${name}.conf'
|
||||
pidfile="/var/run/${name}.pid"
|
||||
load_rc_config $name
|
||||
required_files="${sshd_conf_dir}/${name}.conf"
|
||||
|
|
Loading…
Reference in New Issue