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

Re: [cobalt-users] Suspending users & sites



On Tue, 8 May 2001, Steve Werby wrote:

> "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?
> 

You're not necessarily correct about that... once the PID table gets full
you return to the begining, and then what? :)

besides, we're talking on well programmed software and even the init
scripts does something similar with the daemon start I think... not
sure...

again, I've tried this on every service possible under linux in the past 3
years... it had yet to fail me, and that's why I suggested it :-)

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


- shimi.