Felix Karpfen <[EMAIL PROTECTED]> writes:
> Andrew M. Bishop wrote:
> > Felix Karpfen <[EMAIL PROTECTED]> writes:
> >
> > > What sort of checks need to be added to the basic script to kill
> > > processes that have stalled?
> >
> > An alternative, or an addition, is to have a failsafe. Another
> > crontab that runs as root and which does 'killall pppd' at say 3:30
> I am a "belt and braces" man and had intended to put a separate logoff
> command into crontab.
>
> On my box that command is :
>
> /usr/local/ppp-2.4.1/scripts/ppp-off
>
> Is there any benefit to use "killall"?
Do you know what the ppp-off script will do?
You can be fairly sure that 'killall pppd' will kill the pppd process
and won't get delayed by anything else on the way. The same cannot be
said for the ppp-off script, it is possible that it does things that
may hang up in rare situations. Since you are already in a bad state
and this is supposed to be a failsafe then using the simplest solution
is safest.
--
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop [EMAIL PROTECTED]
http://www.gedanken.demon.co.uk/
WWWOFFLE users page:
http://www.gedanken.demon.co.uk/wwwoffle/version-2.7/user.html