This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: OpenSSH as a service (Was: OpenSSH through inetd)
- To: norbert dot bladt at www dot usa dot net
- Subject: Re: OpenSSH as a service (Was: OpenSSH through inetd)
- From: Corinna Vinschen <vinschen at cygnus dot com>
- Date: Thu, 03 Aug 2000 11:31:32 +0200
- CC: cygwin at sources dot redhat dot com, dumser at bigfoot dot com
- References: <20000803083719.29790.qmail@nwcst277.netaddress.usa.net>
norbert.bladt@www.usa.net wrote:
> The question is: How do I get the pid of the still running old sshd ?
> The PID is written in the "PidFile" given in the sshd_config.
> However, the problem in 2.1.0p3 is, again, the "CRLF" at the
> end of this file. So, I can't use it, at all to kill the sshd
> via
> kill -9 `cat /var/run/sshd.pid`
> Neither "echo" nor "cat" work because of the CRLF.
> Is that fixed in 2.1.1p4 ?
No and it will remain that way for a while. I'm still hoping
to get Cygwin support merged in the portable OpenSSH sources
main tree. If that is the case, I'm able to get smaller patches
checked in easier. Let's name it political.
Personally I have a simple script which reads the pid's from
ps output and kills all sshd then:
====================================
#!/bin/sh
net stop sshd >/dev/null 2>&1
PID=`ps -e | awk '/sshd/{print $1}'`
if [ -n "${PID}" ]
then
kill -9 $PID
fi
====================================
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@sources.redhat.com
Red Hat, Inc.
mailto:vinschen@cygnus.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com