Re: Network guard script
Am Dienstag 16 Mai 2006 11:18 schrieb Eduwijs beheer (Michiel):
> The script needs to be run in a cron job. I've added this script to
> our server in a cronjob which runs each minute.
thanks for your script which is really nice (state its licence, GPL I
Today I was called while still sleeping from school, because after our
server had restarted over night (power loss), LTSP couldn't connect to
tjener any more (because it started to fast). Such a script here could
have meant more sleep to me ;)
On the other hand there are further possible reasons for unavailble
- The end of Google Inc
- Inundadion in NL
- DSL router error.
Whilst the first two poin't won't happen very likely, the latter is
quite common. In such cases the script should possibly stop with an
error like: "restarting network doesn't help, stop working".
Also the service could respawn itself after variable periods of times
(alternative to cronjob).
Instead of google.nl debian.org could be used (would we like it?) or
maybe rather the IP of the DSL router (10.0.2.1).