Watchdog

From AwkwardTV
Revision as of 21:12, 20 August 2007 by XqvBvg (talk | contribs)
Jump to: navigation, search

hard disk esterno lan d g profumo uomo renato zero il triangolo you ll never walk alone fernandez tche garotos jukebox e player vari adamo giovanni martirano lombardo www auxologia it omb www porno com pe www erotika it techno set bmw 328i touring matsuda seiko san benedetto da norcia armadio cabina bambini pc videogiochi the nearness of you wireless per pc portatile microsoft xbox i ginecologo della mutua marco palmezzano fiat punto 3serie spice girls 2 become one destruction hope michael redgrave howea nbp opel astra 1997 gwen trans trav gay canon fax-l220 logitech quickcam communicate plus usb ausilio disabile donna gatto anfibi and para eos 1ds canon bogota ristorante lg lettori divx xblade blue server 4u rack visual basic 6 0 lievito rotella dar unde esti o zone usb hub 1 1 pazzia corsi di perfezionamento nelle accademie hard disk videoregistratori seggiolini auto l rossi facolta scienze politiche di torino psp jap 1 50 borse tracolla sport rumenta kurukh josi campos florence lake targa prova cheap laptop lmc v u2 dent diners sapori del sud gloria parisi piazza affare backdoor gilberto santa rosa il pianeta delle donne amplificatore surround 5 1 jesica rizzo foto cucinare il pesce gatto filtro carbone attivo i viaggi di sindbad testo canzone di coolio yoto elettronica vigevano frasi 18 compleanno vittorie sui mari miesice educacion en democracia en educacion ini la serie lunar torna in europa a novembre batman mask seredova calendario gadis bandung com sbs 240 cucchiaini d argento kodak dx7630 memoria skary moovie topografia italia veneto giornali romania humax toh 3 3 hot 2 2 scambio di foto air line fetal monitor coeds samsung mp3 yh-820 liberty 3 siani dino hp nb nx6110 l albergo a ore testi canzoni laura pausini razer diamondback magma isdn seriale schede video da 32 mb www dildo com certosa di pavia drive pen sony spot pubblicitari download tiziano ferro basi madden nfl 2006 pioneer 600 s adattatore diapositive per scanner memoria per fotocamera high noon mamma son tanto felice sx funcard fiera erotismo milano u-571 e il momento di tha jacket download suoneria thriller michael jakson fatica www provincia milano poc decapitazione ostaggio turco carnitina liquida sans reperes de sniper kardia tyutyuty make francis con le mie mani banca crt vercelli nikolic refinance loan sezenaksu kris kross paolo conte. razmataz live free chat freextv skystar2 lapices televisori plasma alta definizione da 42 sotto il tallone karajan fox calendario di sonia aggiornamento pisa gansta lovin turttle lord of the rings midi files smackdown per playstation 2 ecm a distanza u s robotics modem smu bugil belinda peregrin schull giochi alternativi voli per tokyo biglietti auguri pensionamento beast of blood il gameboy richiehawtin yp-t7z 1 gb midi figli di pitagora timeshare parah federica fontana vacanze thailandia soad aerials ferrovia nord milano polo raf intracom switch giara gas barbecue portatile desmarets de saint-sorlin, jean rotolo a1 our page energi mmc dual corrida messicana gianni e laura coppia desade subzero florida real estate immagine di una rondine i lupi del texas nord produzione pellet cartucce fotocopiatrici crt samsung 19 corriere della sera telefono scambisti woh chali scontro di titani ricevitore schede acquisizione e tv scarica norton antivirus gratis calendario manuela arcuri 2004 gay famosi nike shox cognescenti lerici hotel arch rival sci da scialpinismo ===What is Watchdog===

Watchdog is a service monitoring daemon responsible for rebooting the Apple TV if its GUI application is not running. Its main goal is to reboot the system if the Finder application fails to launch and stay running for a period of time (58 seconds, as far as I can tell). It keeps track of the number of times it's rebooted the system due to a hung or crashed Finder, and when this happens a certain number of times in a row (5 times I believe) it performs some action -- presumably restoring to factory defaults, or to the last known good state.

There's a kext called AppleTCOWatchdog.kext in the /System/Library/Extensions/ folder.

Brief Watchdog Background

Watchdog is a service monitoring daemon that has its roots in Apple's server OS, Mac OS X Server. Watchdog monitors and, as required, relaunches critical processes on the machine. When hardware such as Apple's server hardware, Xserve is present, watchdog is even able to reboot the machine if the power management hardware fails to respond.

This should not be confused with the "watchdog" program from OS X 10.3 and earlier -- it is unrelated, and we should probably delete all of the references to it on this page. :/

The Ripstop Daemon

Ripstop is a background system daemon launched by the launchd process in its role as the successor to mach_init. Ripstop opens a communications channel with the Watchdog service within the kernel, and keeps a notification port open to allow other processes to 'ping' the watchdog, and perform some other duties.

Ripstop Details

Ripstop responds to six notifications, all sent via the low-level notify_post() application:

  • com.apple.riptide.heartbeat
  • com.apple.riptide.start
  • com.apple.riptide.stop
  • com.apple.ripstop.query
  • com.apple.ripstop.debug

The Finder application actually sets up a timer which fires every 58 seconds to make the following call:

notify_post( "com.apple.riptide.heartbeat" );

This is essentially the 'keepalive' notification used to inform the watchdog that everything is hunky-dory.

Upon launch, ripstop switches to the Frontrow user