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@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@ttyp2 (sshd) root 86211 0.0 0.2 2772 1888 ?? Is Fri10AM 0:00.35 /usr/local/sbin/sshd root@asassas openssh-portable> kill 86211 root@asassas openssh-portable> /usr/local/etc/rc.d/openssh.sh start openssh already running? (pid=71249 71254). root@asassas openssh-portable> /usr/local/etc/rc.d/openssh.sh forcestart openssh already running? (pid=71249 71254). root@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_ :(
Responsible Changed From-To: freebsd-ports-bugs->mnag Over to maintainer
Oliver, You can't seriously be saying that you want sshd and/or rc.d to do everything you tell it to except for the part of what you're telling it to do that isn't so smart, then you want them to save you from yourself? :) Seriously though, the real question here is why do you want to restart sshd? If all you want is to have sshd reread its config file, you can accomplish that by HUP'ing the parent process. Can you please respond and confirm that this is what you're after? If so, that's easily added as a 'reload' command to the script. Doug -- If you're never wrong, you're not trying hard enough
State Changed From-To: open->closed Fixed. Thanks.