On Thursday 29 January 2004 13:39, lito lampitoc wrote:
>               /usr/bin/kill ${pid}

<snip>

> hoping this would also prevent disconnecting me in my ssh session while
> still log on my server when doing stop. But to no avail.

how about 

    kill `cat /var/run/sshd.pid`

instead?  the location of the pid file may be different on your box.  this is
better because you only kill the server, not the sessions.

tiger

-- 
Gerald Timothy Quimpo  gquimpo*hotmail.com tiger*sni*ph
http://bopolissimus.sni.ph
Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78"

    All models are false, but some models are useful.
         -- George Box 
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to