[SATLUG] auto-reboot server
Alex Bartonek
bartonekdragracing at yahoo.com
Mon Oct 15 13:48:35 CDT 2007
ooh!! good one.. thanks Channing!
--- Channing <Channing.ML at channingc.com> wrote:
> Here you go...
>
> * wget* -q -O - http://checkip.dyndns.org/ | perl
> -nle 'print for
> /Address: ([^<]*)/'
>
> I snarfed this from the web a few minutes ago. I
> had the same situation
> this past weekend when RR decided to reassign IPs
> Saturday morning.
>
> Channing
>
> Alex Bartonek wrote:
> > after talkin to Al....
> >
> > service network restart
> >
> > lol..I'll try that before the whole reboot thing.
> >
> > Is there a way to get your IP that the outside
> world
> > sees? (whatismyip.com) All from a command line?
> >
> >
> > --- Alex Bartonek <bartonekdragracing at yahoo.com>
> > wrote:
> >
> >
> >> Well my server is down at the house. I get the
> 'I'm
> >> alive' emails every few hrs so I know its
> running.
> >> Havent had any.. Is there another server? Is it
> >> cheating... ok, seriously..
> >>
> >> So it doesnt have internet access. This is a
> >> physical
> >> machine now instead of a VMWare session (bought a
> >> cheap $5 733mhz computer on base). I know its
> >> powered
> >> on because I saw it this morning..but maybe a
> reboot
> >> would fix it.
> >>
> >> Simple cron job running as root to:
> >>
> >> 1. ping the outside world (yahoo.com or
> whatever)
> >> 2. If #1 fails then call reboot_it.sh, else exit
> >>
> >> reboot_it.sh:
> >> 1. read file generated from #2 #3 below (there
> will
> >> be dummy text files created when I initially
> design
> >> this) to see if we've rebooted already today. If
> so
> >> theres no need to reboot again because there is a
> >> problem that a reboot cant fix.
> >> 2. write a keyword into a text file like
> "rebooted"
> >> 3. write current date time to txt file
> >> 4. init 6
> >>
> >>
> >> Anything I'm missing? Confusing as hell?
> >>
> >> -Alex
> >>
> >>
> >>
> >>
> >>
> >>
> >
>
____________________________________________________________________________________
> >
> >> Tonight's top picks. What will you watch tonight?
> >> Preview the hottest shows on Yahoo! TV.
> >> http://tv.yahoo.com/
> >>
> >> --
> >> _______________________________________________
> >> SATLUG mailing list
> >> SATLUG at satlug.org
> >> http://alamo.satlug.org/mailman/listinfo/satlug
> to
> >> unsubscribe
> >> Powered by Rackspace (www.rackspace.com)
> >>
> >>
> >
> >
> >
> >
>
____________________________________________________________________________________
> > Don't let your dream ride pass you by. Make it a
> reality with Yahoo! Autos.
> > http://autos.yahoo.com/index.html
> >
> >
> >
> >
>
>
> --
> A: Yes.
> > Q: Are you sure?
> >> A: Because it reverses the logical flow of
> conversation.
> >>> Q: Why is top posting annoying in email?
>
> --
> _______________________________________________
> SATLUG mailing list
> SATLUG at satlug.org
> http://alamo.satlug.org/mailman/listinfo/satlug to
> unsubscribe
> Powered by Rackspace (www.rackspace.com)
>
____________________________________________________________________________________
Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html
More information about the SATLUG
mailing list