Subject: bin/4846: now that ssh is a package, the call to /usr/local/bin/sshd in rc.local is (even more) bogus
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jim.wise@turner.com>
List: netbsd-bugs
Date: 01/19/1998 15:34:12
>Number:         4846
>Category:       bin
>Synopsis:       now that ssh is a package, the call to /usr/local/bin/sshd in rc.local is (even more) bogus
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 19 15:35:03 1998
>Last-Modified:
>Originator:     Jim Wise
>Organization:
				Jim Wise
				jim.wise@turner.com
>Release:        NetBSD/i386 1.3
>Environment:
System: NetBSD gondolin 1.3 NetBSD 1.3 (GONDOLIN) #0: Fri Jan 16 04:34:49 PST 1998 jimw@gondolin:/usr/src/sys/arch/i386/compile/GONDOLIN i386


>Description:
	/etc/rc.local contains a call to /usr/local/bin/sshd
	(commented out, but present).  IMHO, rc.local should ship
	empty.  Also, we ship sshd as part of the ssh package, so
	if ssh is called, it should be called as /usr/pkg/sbin/sshd.
>How-To-Repeat:
	more /etc/rc.local
>Fix:
	remove start of sshd from rc.local.  If it is intended as
	an example, create /usr/share/examples/rc.local.  If it
	_must_ be left in, have it call /usr/pkg/sbin/sshd.  In
	the long run, perhaps we need an rc.pkg and rc.pkg.conf
	with checkyesno variables much as used by rc.conf.  Designs
	for such a file span the range from an empty file like
	rc.local to SYSV-style init.d files.  A good workable
	solution would be either a standard format for this file,
	which could then be machine-edited, and/or an /etc/rc.pkg
	which shipped as part of the package system, and instructions
	for building a local /etc/rc.pkg.conf.  /etc/rc.pkg could
	then contain checkyesno'ed sections for each package in
	pkgsrc which could benefit from startup processing
>Audit-Trail:
>Unformatted: