ports/93228: [openssh-portable] rc.d script is useless for remote systems

Oliver Lehmann oliver at FreeBSD.org
Sun Feb 12 10:00:15 UTC 2006


>Number:         93228
>Category:       ports
>Synopsis:       [openssh-portable] rc.d script is useless for remote systems
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 12 10:00:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Lehmann
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD 6.0-STABLE #0: Sun Jan  8 23:06:16 UTC 2006 i386


>Description:
	using openssh.sh to stop the sshd for starting it after (or using 'restart')
	ends up in having openssh.sh killing _all_ the sshd processes, not just
	the server. that ends up in loosing my ssh connection which is pretty
	bad when the ssh server is not running because it was shutted down....
	even killing the server by hand and using openssh.sh to start fails.

	root at asassas openssh-portable> ps auxww | grep ssh
	root     71249  0.0  0.3  5384  2040  ??  Is   12:02AM   0:00.06 sshd: assasa [priv] (sshd)
	assasa   71254  0.0  0.3  5384  2076  ??  S    12:02AM   0:01.67 sshd: assasa at ttyp2 (sshd)
	root     86211  0.0  0.2  2772  1888  ??  Is   Fri10AM   0:00.35 /usr/local/sbin/sshd
	root at asassas openssh-portable> kill 86211
	root at asassas openssh-portable> /usr/local/etc/rc.d/openssh.sh start
	openssh already running? (pid=71249 71254).
	root at asassas openssh-portable> /usr/local/etc/rc.d/openssh.sh forcestart
	openssh already running? (pid=71249 71254).
	root at asassas openssh-portable>

	I used "nohup /usr/local/etc/rc.d/openssh.sh restart >&/dev/null &" but I
	feel bad. Think about an error with openssh which prevents it from working
	correctly. Since I lost my ssh session I can't fix it.... that is _bad_ :(

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list