SSH on Multiple ports Fedora Core 4

William Hooper whooperhsd3 at earthlink.net
Tue Nov 29 03:27:08 UTC 2005


John Gallagher wrote:
[snip]
> If I restart one of the
> processes it can and sometimes does kill the other process.
>
> service sshd restart will kill the process started as sshd-ext.
[snip]

Makes sense:
[snip]
> SSHD=/usr/sbin/sshd
[snip]
> stop() {
> echo -n $"Stopping $prog:"
> killproc $SSHD -TERM RETVAL=$?

killproc is using "/usr/sbin/sshd" as the first argument.  That means it
looks for the /var/run/sshd.pid file.

I believe you will need to make a copy of the sshd binary, or rewrite the
script without killproc.

-- 
William Hooper




More information about the fedora-list mailing list