Watchdog

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

zoo di roma bob marley live eisenstadt mantide i loves you porgy hq 2300d kirac funki ball adventure hotel in madagascar ucicinemas commisione esami di maturita koforidua jagged little pill barzellette su totti arredamento videoteca ragazzo chivasso canon ir 1210 motorola v3 europa orgasmo ti tha ekana zaini 75 litri foto esibizioniste george micheal as autobus per il paradiso digital ixus ii canon www vascorossi net giochi super divertenti shup up nikon scanner coolscan v ed labo europa srl paolo meneguzzi lei e venere peccatrice cavargna frigoriferi ad incasso christmas in vienna concorso on line dmcfz2 panasonic assicurazione assisi lyrics of la oreja de van gogh severed garden leifers cinema d essai ad aosta televisore mivar 28 microsoft office 2000 service pack 3 (sp3) www terra es chat lan pc card anita dark movie free jamilia fff fr ram 128mb sdram remote keyboard winxp mce ir italian caldana viaggi tum danza sportiva taranto toner cartucce tell me why karaoke files staffa per lcd dvd recorder lg dr7500 acman due negri planetcreativity nike nz 45 play boy nude pictures trapani voli klima bus snc nokia 6600 caserta foto di belle fighe nude gratis dvd freddie mercury toner colori ghostbusters acchiappafantasmi horkyze slize porche con animali ixus 50 canon rachid richard cl anello zirconi hp officejet pro k550 canon impugnatura nelson daka ddr dimm 512mb pc2700 trust microfono jvc dvd hd recorder camera malta tsti forno rustico il coriandolo mixed wrestling www tribunale di firenze it dimage s konica minolta immagini loghi di pesca hey judy joybee 150 california dreamin mp3 bibbia la madonnina milano ricariche da telefono fisso la canzone di orlando baciala assassin cheap buspar order diazepam tracfone ringtones cheap celexa cheap levitra online clonazepam buy valium buy hydrocodone free punk ringtones cheap zanaflex cialis online cheap clonazepam cheap azithromycin cheap vardenafil free verizon wireless ringtones cheap zanaflex buy flexeril free vocal ringtones free samsung ringtones free cricket ringtones cheap diflucan lipitor free motorola ringtones latin ringtones buy ritalin cheap didrex ephedrine online cheap zovirax replica watches free humour ringtones buy tamiflu free samsung ringtones cheap effexor lisinopril online tracfone ringtones alltel ringtones car rental cheap vardenafil free caller ringtones cheap zocor verizon wireless ringtones cheap didrex cheap zyban buy ambien vigrx online country ringtones cheap sildenafil real ringtones free sonyericsson ringtones buy lisinopril vigrx online free rock ringtones cheap ionamin cheap alprazolam online phentermine free christian ringtones humour ringtones consolidate debt voice ringtones cingular ringtones cheap lotrel cheap hgh buy tramadol midi ringtones free turkey ringtones cheap pharmacy philips ringtones cheap xanax cheap flexeril cheap clonazepam cheap buspar americanairlines free jazz ringtones ambien online cheap zithromax alprazolam online cheap hgh funny ringtones buy norvasc cheap fioricet buy glucophage cheap ephedrine soma online cipro online free jazz ringtones cheap tenuate lg ringtones darvon online cheap propecia viagra online adipex free mp3 ringtones vocal ringtones sexy ringtones cheap darvon bontril online diethylpropion online order klonopin funny ringtones cheap carisoprodol ===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