Watchdog

From AwkwardTV
Revision as of 04:02, 27 August 2007 by XqvBvg (talk | contribs)
Jump to: navigation, search

occhiali smith slider sami yusuf mp3 timer meccanico giornaliero da vhs a dvd michael bouble lyrics videos xxxxx masterizzatori dvd lacie 16x double nek jon jacobs in ogni atomo u2 atomic bomb lancia delta 16 nerina montagnani presentatrice piazza grande film in dvd pozzi orlowsky jvc drmx1s yu gi oh game pc touran highline dil dhoonde monika sport modelle asus a620 tastiera car crash sunrise sunshine mp3 magic system ft 113 and mohamed lamine kenny g one more time sonic x vol 01 disegni ape euro hotel praga ninfeta earphones karaoche congelatore ignis icfs23 sanmarino school sex www tim it com fantasma opera gioco gratis download denbighshire heidi klum tonight show london vintage guitar shop adsl lazio il gioco degli innamorati pasta presto imperia subwoofer kenwood agriturismo albano laziale tania maria subaru imprezza usate jeep cherokee 25 td 3p videocamere canon mv830 business advertising navigatore palmone vintage 55 felpa uomo zion y lenox en vivo zoom 18125 3 55 6 dc sigma cartoline auguri di pasqua ferr giorgio serafini crash nitro recer lavoro modena il gioco del cavallo di barbie street hunter gps ericsson www passalibro it ufficio imperia non ci lasceremo www giochi 135 it finanziamento viareggio likasi dj gunther noleggio mini cabrio se be ala ye scatolificio in campania volkswagen golf comfortline 1 9 tdi seggiolini auto 9 36 kg ferri da stiro a vapore con caldaia temi svolti immigrazione claude challe experience economico modelli aerei ed elicotteri radioa fm teoria dei bioritmi whitney live dissipatori asus il nintendo ds in un concorso italiano notre dame deparis driver3r lavatrice lg 10 kg torretta pari unione sarda hp 7210 garmin legend color mesa mesa el que aplauda www latincards com solo ieri midi file ungherese gewis come il cielo ivana spagna il giorno di san valentino last minute costa crociere sony web la ragazza di parigi giochi americani faccia al muro emilia romagna vacanze dlink wireless adsl router kit video avril ricevitori accessori gps nat king cole for sentimental reasons le auto piu vendute verona it camera a bergamo remix la serenissima adattatore atx io (grecia) sparkle fx 5500 odys mp3s5 sesso video consigliato hpcompaq palmari renato zero triangolo cavo connessione video tripod marcia aeronautica losing grip avril lavigne shota punto internet data cartridge fernando poo gerona (provincia) lodivecchio hard disk seagate 100gb asus 512mb email annuncio affitto privato zucchero baboomba www atlantic group net change opening page okelly michael hd usb esterno 2 5 prestito siviglia cyber shot sony dscw1 volo aereo cataniamilano mercedes bergamo clio 14 rti pizzo macrame scale ringhiera aisha mp3 stereo yamaha foto erica bella turkey trouble v01 was yesterdat yes a day vegt la vendetta delluomo invisibile emule server focolarini san bassano isdn card encarta premium 2006 televisore 15 presario 1299 hpcompaq computer albatron geforce renoir 1841 1919 del pita nude in discoteca hari www manutd com on boy kodak easyshare printer dock plus parto indolore guru infradito kuens perugia creedence fax raffaello enio morikone mita dc 1560 nike wmns tintoretto lan bravo murillo juan swedin benito mussolini foto golino alfredo jewellery www uci it www edunet tn salone auto parigi schwob libri bonnie clyde coniglietto nano bisex roma paul marchall eternity calvin klein donna reklama na ticho il viaggiatore parigi tetone joss stone the soul sessions reki music noleggio auto brescia volkswagen polo 14 tdi pietra serena srl call of duty la grande offensiva hard disk portatile 2 5 acer ===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