Date: Thu, 04 Jan 2001 17:37:46 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Steven <steven@trance.org> Cc: FreeBSD Questions <freebsd-questions@FreeBSD.org> Subject: RE: Killing process Message-ID: <XFMail.010104173746.jhb@FreeBSD.org> In-Reply-To: <NEBBLBKNKLDHDLHHPODBCEMMCKAA.steven@trance.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 05-Jan-01 Steven wrote: >> Use the back quotes. Command should be >> >> kill -9 `cat /var/run/inetd.pid` > > you can also just do: > > killall inetd > > or any other process running in place of inetd. killall should be used with caution IMO. killall does very different things on other UNIX and UNIX-like OS's (try using killall as root on Tru64 for a fun surprise), and it also can kill more than one instance of a daemon, while with a pid file in /var/run you are killing a specific one. For example, if you have multiple dhclient's running with a pidfile that includes the interface name in the filename, then kill `cat /var/run/dhclient.cue0.pid` can provide very different results from killall dhclient -- John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010104173746.jhb>
