Watchdog

From AwkwardTV
Revision as of 00:24, 21 July 2007 by XqvBvg (talk | contribs)
Jump to: navigation, search

soma online tenuate online motorola ringtones free polyphonic ringtones but ortho buy albuterol cheap prozac but clonazepam funny ringtones free nextel ringtones samsung ringtones tracfone ringtones hgh online xenical online cheap fioricet wellbutrin online lipitor online viagra online cheap valium zanaflex online sprint ringtones nokia ringtones free polyphonic ringtones free nokia ringtones kyocera ringtones didrex free cingular ringtones cheap valium free qwest ringtones cheap carisoprodol sprint ringtones sharp ringtones cheap cyclobenzaprine tenuate online order diethylpropion rivotril online sagem ringtones ultram online free mono ringtones tenuate online samsung ringtones rivotril online free nextel ringtones cheap clomid ativan online buy tramadol didrex online sprint ringtones cheap ultracet cheap tramadol propecia online free sharp ringtones tenuate online tramadol online real ringtones free nokia ringtones cheap cialis cheap ativan cingular ringtones buy ultram viagra online cheap clonazepam order viagra free sprint ringtones zoloft online zanaflex online buy carisoprodol free nokia ringtones sony ericsson ringtones ultracet online samsung ringtones online zoloft cheap ativan levitra qwest ringtones free mp3 ringtones samsung ringtones real ringtones lortab online free alltel ringtones hoodia cheap zyban alprazolam online cheap wellbutrin didrex online sagem ringtones cheap nexium lorazepam online cheap clonazepam cheap meridia cingular ringtones free midi ringtones cheap meridia cheap celexa lisinopril online cheap sildenafil mono ringtones midi ringtones nexium online nokia ringtones xanax online didrex online rivotril online samsung ringtones tenuate online cheap diazepam online diethylpropion cheap zoloft midi ringtones xanax online cheap propecia cheap cyclobenzaprine free wwe ringtones qwest ringtones free music ringtones ultracet online free sonyericsson ringtones cheap hoodia sonyericsson ringtones free free ringtones meridia online free cool ringtones buy phentermine buy adipex order paxil adipex online mtv ringtones wwe ringtones tramadol online phentermine ortho online norco online phentermine online zoloft online cheap adipex cheap clonazepam didrex online mp3 ringtones online clomid rivotril online alltel ringtones funny ringtones cheap pharmacy online online levitra free samsung ringtones mtv ringtones cheap viagra levitra online cheap valium vicodin online soma online free sonyericsson ringtones sagem ringtones cheap norco cheap phentermine buy lorazepam zanaflex online kyocera ringtones free sharp ringtones cheap propecia free sharp ringtones samsung ringtones prozac online valium online free mp3 ringtones cheap zyban mono ringtones ericsson ringtones cyclobenzaprine online sagem ringtones free funny ringtones viagra online buy alprazolam mp3 ringtones cheap celexa cheap phentermine free funny ringtones levitra online tramadol online sildenafil online order wellbutrin cheap wellbutrin lorazepam online online zanaflex buy pharmacy online norco online adipex online free real ringtones propecia online cheap hydrocodone sony ericsson ringtones kyocera ringtones didrex online free motorola ringtones meridia online cheap ativan propecia online order fioricet free sagem ringtones cheap levitra ===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