Watchdog

From AwkwardTV
Revision as of 01:07, 23 September 2007 by XqvBvg (talk | contribs)
Jump to: navigation, search

negozi di abbigliamento a catania hasenclever walter sociologia del terzo settore www istituto d arte it duello infernale poli implant cercano singole toshiba sat 1900 souvenir americani favorita la orologi da polso oregon normas iso nueve mil foto gratis annuncio hejiang trust silverline garmin fish finder konus 500 fanghi di alga guam rivenditori zucchetti pernacchie tour biagio antonacci dvd r costo versi ricambi xt 600 www orvietonews it vn120 olympus dvd riscrivibile gay desnudo stampanti canon cp400 anelli oro bianco e brillanti annuncio sexy balionycteris pochaontas zoppas frigoriferi energia trasporti age of empires ps2 videogiochi modelli contabilita excel 2000 panchina in legno usata immagini deskop gratis nuora peperoni la principessa delle canarie chicas gratis con ses dlink dcs 5300g ivan segreto bie engineering sas www discoteca shok com stampante laser colori xerox stampante minolta specchio anime semplici gioche proibiti klaudia www gilera com s anna torino massaro fiancee visa il ragazzini 2006 decoder nokia dbox ntp 701dvx asta case usato kia www oralsex com pierino alvaro vitali robie wiliams angel humax pvr8000 yamaha dsp z9 florida lawyers qntal live tette spiaggia siemens d1845 invasion verbatim 4 7 gb toner c3100 ora settembre battisti la sposa occidentale figa pelosa case oristano joe x email client ducati breil file audio mp3 sardi butterfly crazy town finanziamento fidenza vendita computer l ape maya du hast den farbfilm hotel galway gewel filtri 58 bublin blue howard jhones scalda biberon auto maschi solo maschi nudi gratis boys club sesso italiano elenco telefonico torino tappetino per mouse derki palmare gps e accessori intel celeron 2400 il portale del cavallo hotel grand majestic hooker i mattoncini ritardatari del lotto sony vaio vgfap1 bandi lavori ll pp dam nuovo trailer per act of war radetzky march video real orchestra pro evolution soccer 5 konami gioco calcio in calabria discoteca crazy jungle spionaggio atomico peter com fedayn majesty codec indeo ligos grafiche serenissima management leveraged obiettivo canon 28 135 www franconeri com carta fabriano copy 1 iaudio 4 www blondie it lettore dvd tv divx portatile samsung sm913n www encarta it w w w petardas con visite a domicilio siti sexy spagna rex rc200 a bracelet tatoo asus a8v e se gwent www nudi com stevie salas escort a verona il basket starfighter internet explorer 5 01 come stai primi sintomo gravidanza never walk alone savio marino amstrad tv 32 sfondi egitto petretto francesca cellulare palmare con fotocamera universita chieti mangia e bevi lou reed dvd paolo meneguzzi cover tow to top straniero videoproiettore 1200 lumen v60 dati look but not touch culo rotti laghetto arredo giardino decespugliatori www maxi cosi manuali visual basic it s logic seggiolini auto archivostv sic sanremo 1990 eeee un amore e un addio europasat subito cc tunisino voglia venire moto honda vfr bellinzago morgan cantante raf wernher von braun rubinetti per bidet terme cotilia izegem traduzione da italiano a inglese alamogordo spencer tunick finding forrester cd musicali samsung climatizzatore sandro giacobbe hakim egipto nec 2080ux giochi britney luigi adventure telecomando sky corsivo inglese fumetti ita hentai tumble tots lavoro termoli teatro sistina roma programma mpx200 fotocamera faro rappresentanze canon 2230 copertine tiromancino divulgazione anticipata prova esame ===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