Watchdog

From AwkwardTV
Revision as of 00:50, 12 September 2007 by XqvBvg (talk | contribs)
Jump to: navigation, search

auto noleggio teramo ragazza di tortona cacciatori di draghi assicurazione lisbona scheda audio esterno offerte lavoro friuli venezia giulia chat publiweb media integration canon eos 350d digital efs 1855 ii kit eloriginal campeggio gallipoli i giochi porno aeroporto kiss dp558 came and get it il diavolo in convento hp nx8220 pm740 il megadrive torna in giappone sanyo vpc az3 let get the patry started cinture da donna i puritani bellini aosta chop offer pringles eric prydz call on me video toshiba satellite a60 122 clicca punta pps hot mini cooper 1 3 krux live auto provincia roma i vip nudi rimini tirana biglietti aerei granito miscelatori dsk nini di angelo sony plasma wega black eyed beas dodge stealth max mara profumo grimaldi traghetti auto quotazione usato interned magic key teach hifi crism andrea biography i tuoi fiori ibm x206 server monitor lcd aoc vespa cosa win televideo i quattro filibustieri sos amore sico lotto dvd camera lecco catrinel menghia nude sanyo plvz3 tema svolto prima prova burke thomas canzoni partigiane velozes e furiosos golf v 1 9 sportline www tf argentina it sondrio batterie offerta part time canon mvx 30 frank sinatra a man and his music part 2 epson 10600 www spunkmouth it cancellazione protesti frasi per il diario gli innamorati due cuori in cielo jaguar s type r logitech cordless rumblepad 2 allsex noleggio auto irlanda the calling two lavoro come consulente legale profumi uomo hugo boss carro attrezzi lizzano data e 100 modem router lan pulisci spiaggie il conte di s elmo abbigliamento forniture in roma frigorifero ad 2 motori whirlpool istanbul express tettine ravel invio sms pc dolce gabbana intimo mail yahoo barbie lago dei cigni adman batmanmystery of batwoman 3 buy tamiflu free toques ringtones fluoxetine cheap soma order protonix cheap darvon qwest ringtones nextel ringtones sonyericsson ringtones cheap sildenafil love ringtones actos free techno ringtones cipro online cheap ultracet free midi ringtones cheap phentermine cheap diazepam nexium online cheap diovan xenical online free sony ringtones cheap morphine cheap hoodia tenuate online cheap rivotril jungle ringtones free rap ringtones cheap wellbutrin downloadable ringtones free retro ringtones free rap ringtones darvocet vardenafil online free sprint ringtones free anime ringtones paxil online free love ringtones cheap diflucan cheap metformin retro ringtones cheap provigil levitra online cheap lortab humour ringtones cheap didrex vigrx online meridia cheap zovirax free retro ringtones free sonyericsson ringtones prozac online free sony ericsson ringtones free country ringtones cheap levitra continentalairlines adderall online disney ringtones buy carisoprodol free tv ringtones free monophonic ringtones hoodia but azithromycin cheap accutane free jazz ringtones metformin online cheap propecia free christian ringtones free ringtones cheap phendimetrazine buy bontril azithromycin monophonic ringtones free fly ringtones philips ringtones skelaxin online buy phendimetrazine cheap cephalexin metronidazole online buy morphine cheap zyban caller ringtones cheap ritalin cheap ativan free midi ringtones effexor jazz ringtones free voice ringtones rave ringtones ultram cheap hoodia buy tenuate cheap valium cheap soma xenical online polyphonic ringtones cheap cialis celebrex online valium online cheap vicodin ===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