rc.subr / rc.d/sshd patch for review

Florent Thoumie flz at xbsd.org
Fri Mar 24 12:16:08 UTC 2006


This is based on Oliver's patch for rc.d/sshd that can be found in
Gnats.

In load_rc_config, I'm extracting prefix from ${command} (or
${name}_program, which part is moved from run_rc_command), and setting
etcdir accordingly.

The point is that some scripts (like rc.d/sshd) can be used for base
sshd as well as ports sshd, and makes possible to source
${prefix}/etc/rc.conf.d/${name}.

This patch also documents ${name}_program above run_rc_command (though
it's actually used in load_rc_config).

The patch can be found at
http://people.freebsd.org/~flz/local/rc.d-sshd.diff.

-- 
Florent Thoumie
flz at FreeBSD.org
FreeBSD Committer



More information about the freebsd-rc mailing list