[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Suspending users & sites



"shimi" <shimi@xxxxxxxxxxxxxxxx> wrote:
> > have it run 'newaliases' when it's done, then restart sendmail to make
the
> > changes active (by doing kill -HUP pid_of_sendmail).
>
> Couldn't resist...
>
> Admins can save lots of time by killing programs with their name, rather
> than their PID (as looking up a PID takes some time, especially when you
> rehash a sevice which changes it's PID constatnly.)
>
> The command is:
>
> killall -HUP sendmail

I admit I prefer kill over killall and know less about killall than I'd
like.  I believe running the above command will issue a HUP signal to all
processes running that match the command 'sendmail'.  Sendmail is likely to
be running multiple processes, but the one you want to send the HUP signal
to is the process that started running Sendmail when it was loaded (the one
with the earliest start time, usually also the smallest PID).  In the case
of a HUP signal killing all sendmail processes will probably not have any
unintended side effects, but when sending other signals I worry that
processes might be killed that shouldn't be or don't need to be.  shimi, do
you have any thoughts on this?  Anyone else?

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/