Date: Thu, 30 Mar 2000 15:57:11 +0200 From: Sheldon Hearn <sheldonh@uunet.co.za> To: Micke Josefsson <mj@isy.liu.se> Cc: =?Windows-1252?Q?Ari_Sigur=F0sson?= <bsd@hrappur.solver.is>, freebsd-questions@FreeBSD.ORG Subject: Re: messages on screen Message-ID: <25929.954424631@axl.ops.uunet.co.za> In-Reply-To: Your message of "Thu, 30 Mar 2000 15:34:07 %2B0200." <XFMail.000330153407.mj@isy.liu.se>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 30 Mar 2000 15:34:07 +0200, Micke Josefsson wrote: > kill -HUP 1164 > > Kills process number 1164 (PID=Process ID). Use top or 'ps -ax' to list > processes. Actually, most deamons leave a "pid file" in /var/run to assist you with this. In the case of syslogd, you can usually do this: kill -HUP `cat /var/run/syslog.pid` Note that it's syslod.pid and _not_ syslogd.pid. FreeBSD also has a killall(1) utility which kills (possibly multiple) processes by name. You could do this: killall -HUP syslogd However, killall(1) does not exist on all platforms and this "lazy" way of doing things can cause some serious problems if you happen to catch forking daemons at the wrong moment. Ciao, Sheldon. 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?25929.954424631>