Watchdog

From AwkwardTV
Revision as of 06:11, 10 September 2007 by XqvBvg (talk | contribs)
Jump to: navigation, search

l aurora ipssar catania pro di milano lupin hentai deportes extremos dvd dvp520 infradito donna tacco alto ati aiw x600 givenchy cipria universal green polo prada keys astra milil palmari gsm a gps casse creative 3200 texas holdem poker samsung sm913n resicence montagna upskirt video paola perego foto cannavaro fabio il maresciallo rocca stagione 2 vol 3 gioco di elisa di rivombrosa ragazza bruxelles traduzione california oc cecina pensioni foto mara venier porno titeuf b w 802 matrix piccolo coro dell antoniano zecchino d orologio omega contrattacco juli perfecte welle carnevale venezia delitto senza scampo telefonini siemens c60 kanye west through the wire amministratore nudo gay download programmi per bioritmo cammina non correre esami per l abilitazione emozione per sempre ramazzotti www camper netsurf night in tunisia harry tracy annuncio personali gratuiti incontri francesco napolli tshirt dolce e gabbana uomo culle neonato gioco su escher foto rock nl panasonic viera tx 26lx50f www cucina it pellicano perfect lie panasonic sc dt310 comit (informatica) sevex ch incredibili film dvd tessuti nautica no puedo vivir asi superdot reid harry fielding memoria ram 333 moster jam zeljko joksimovic lano moje www sex world finanziamento pesaro hong nhun nguyen adidas scarpa running creato per uccidere i calunniatori nasty mpeg maxtor 300 lancio pinguino beethoven violin the sea morcheeba vacanza benessere relax death row nel braccio della morte www newpo www regalissimi it km0 hyundai auto km 0 nvidia quadro 4 980 xgl power translator pro 9 frank abagnale testi delle canzoni villa ada posse emule adunanza download lw 46g15w faro punta del silent hill 3 i can get over you no matter wath i do poetry eamon video lorelei the witch of the pacific ocean programma download mp3 italia 1 www panorama it sesso heim albert vivitar 28 105 ===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