Difference between revisions of "Watchdog"

From AwkwardTV
Jump to: navigation, search
m (repairing truncated page)
m
Line 1: Line 1:
===What is Watchdog===
+
[http://hangzhau.cn/html/athlon-xp/ athlon xp 2800] [http://puli.org.cn/web/solo-lei/ solo lei ramazzotti] [http://zodip.info/description/orb-offworld.htm o.r.b. off-world resource base] [http://hangzhau.cn/html/fisici/ fisici] [http://zodip.info/description/accessorio-sony.htm accessorio sony] [http://italnet.net.cn/img/locali-scambisti/ locali scambisti in lombardia] [http://nibko.info/data/conector-rj.htm conector rj45] [http://italnet.net.cn/img/un-amore/ un amore da favola] [http://puli.org.cn/web/fotocamera-digitale/ fotocamera digitale canon a400] [http://puli.org.cn/web/sito-internet/ sito internet romagna] [http://zodip.info/description/kingkong.htm kingkong] [http://hangzhau.cn/html/soy-cubanito/ soy cubanito] [http://italnet.net.cn/img/masterizzatore-dvd/ masterizzatore dvd r- dual layer] [http://nibko.info/data/pioneer-dvrd.htm pioneer dvr-109d] [http://nibko.info/data/cavalieri-.htm cavalieri  dello zodiaco] [http://nibko.info/data/gto-great.htm g.t.o. great teacher onizuka. disco 4] [http://zodip.info/description/masterizzatore-esterno.htm masterizzatore esterno dvd plextor] [http://zodip.info/description/hotel-cologne.htm hotel cologne] [http://zodip.info/description/nude-amatoriali.htm nude amatoriali] [http://hangzhau.cn/html/sliver/ sliver] [http://puli.org.cn/web/mi-soledad/ mi soledad y yo] [http://nibko.info/data/canon-.htm canon - selphy cp600] [http://italnet.net.cn/img/fuji-z/ fuji z1] [http://zodip.info/description/il-re.htm il re dei campi elisi] [http://hangzhau.cn/html/christmast-card/ christmast card vodafone] [http://nibko.info/data/testo-non.htm testo non so che darei di alan sorrenti] [http://nibko.info/data/panasonic-scpm.htm panasonic sc-pm21] [http://italnet.net.cn/img/titov-german/ titov, german] [http://nibko.info/data/residenze-in.htm residenze in costa smeralda] [http://nibko.info/data/mari-gruppo.htm mari (gruppo etnico della rus...] [http://italnet.net.cn/img/dect-/ dect 311 cordless] [http://italnet.net.cn/img/il-pene/ il pene nella figa] [http://hangzhau.cn/html/motorola-cellulare/ motorola cellulare v51] [http://puli.org.cn/web/sesso-cazzo/ sesso cazzo] [http://hangzhau.cn/html/compex-it/ compex it] [http://puli.org.cn/web/becker-/ becker - traffic pro 7945] [http://nibko.info/data/nickelodeon.htm nickelodeon] [http://zodip.info/description/mila-moy.htm mila moy] [http://hangzhau.cn/html/hi-fi/ hi fi car clio] [http://hangzhau.cn/html/prezzo-samsung/ prezzo samsung] [http://zodip.info/description/creative-zen.htm creative zen touch 20] [http://nibko.info/data/jbl-k.htm jbl k2] [http://puli.org.cn/web/mobili-usati/ mobili usati ufficio] [http://puli.org.cn/web/strumien/ strumien] [http://italnet.net.cn/img/giochi/ giochi...] [http://italnet.net.cn/img/heym-georg/ heym, georg] [http://zodip.info/description/lettori-mp.htm lettori mp3 acer 512mb] [http://italnet.net.cn/img/foto-donne/ foto donne sex] [http://zodip.info/description/he-ja.htm he ja] [http://nibko.info/data/www-boccaccesca.htm www boccaccesca it] [http://italnet.net.cn/img/www-sharif/ www sharif ac ir] [http://nibko.info/data/lancome-impactive.htm lancome impactive] [http://nibko.info/data/britney-spears.htm britney spears 2005] [http://zodip.info/description/rock-me.htm rock me amadeus] [http://italnet.net.cn/img/we-are/ we are ana johnsson] [http://nibko.info/data/nx-cm.htm nx6110 c-m360] [http://hangzhau.cn/html/telecamera-sony/ telecamera sony pc 6] [http://zodip.info/description/beritney-spears.htm beritney spears] [http://puli.org.cn/web/xp-service/ xp service pack 1] [http://puli.org.cn/web/olivia/ olivia] [http://zodip.info/description/video-andresan.htm video andresan] [http://italnet.net.cn/img/rivenditore-hg/ rivenditore h3g] [http://puli.org.cn/web/ram-/ ram 256 pc133 kingston] [http://italnet.net.cn/img/le-fate/ le fate dei fiori] [http://zodip.info/description/cardispan.htm cardispan] [http://zodip.info/description/himalaia.htm himalaia] [http://zodip.info/description/bmw-serie.htm bmw serie 3 coupe] [http://italnet.net.cn/img/nora-roberts/ nora roberts libri] [http://hangzhau.cn/html/peter-coniglio/ peter coniglio] [http://zodip.info/description/ontrack-easy.htm ontrack easy recover] [http://zodip.info/description/ricardo-martinez.htm ricardo martinez] [http://zodip.info/description/gary-jules.htm gary jules mad world] [http://nibko.info/data/acqua-fredda.htm acqua fredda] [http://italnet.net.cn/img/pietre-minerali/ pietre minerali grossisti] [http://hangzhau.cn/html/sorcerous-stabber/ sorcerous stabber orphen] [http://hangzhau.cn/html/frigoriferi-da/ frigoriferi da incasso a] [http://italnet.net.cn/img/trrr/ trrr] [http://puli.org.cn/web/offroad-com/ offroad com] [http://hangzhau.cn/html/multifunzione-fotocopiatrice/ multifunzione fotocopiatrice scanner] [http://hangzhau.cn/html/carpark/ carpark] [http://hangzhau.cn/html/gaychat/ gaychat] [http://italnet.net.cn/img/prestito-madrid/ prestito madrid] [http://zodip.info/description/lauren-bacall.htm lauren bacall] [http://zodip.info/description/annuncio-single.htm annuncio single foto personale] [http://nibko.info/data/zalman-zmdhp.htm zalman zm80d-hp] [http://puli.org.cn/web/fiume-reno/ fiume reno] [http://nibko.info/data/stampanti-epson.htm stampanti epson aculaser c900] [http://zodip.info/description/bliardo.htm bliardo] [http://italnet.net.cn/img/everybody-s/ everybody s changing] [http://nibko.info/data/king-of.htm king of convinience] [http://zodip.info/description/epson.htm epson 810] [http://puli.org.cn/web/elenco-telefonico/ elenco telefonico internazionale] [http://zodip.info/description/gillo-dorfles.htm gillo dorfles] [http://puli.org.cn/web/scuola-graduatoria/ scuola graduatoria] [http://hangzhau.cn/html/asciugabiancheria-classe/ asciugabiancheria classe energetica a] [http://nibko.info/data/partecipanti-.htm partecipanti 7 dicembre] [http://nibko.info/data/solo-moto.htm solo moto] [http://puli.org.cn/web/preiscrizioni/ preiscrizioni] [http://zodip.info/description/ballo-in.htm ballo in inghilterra] [http://zodip.info/description/il-giardino.htm il giardino segreto] [http://hangzhau.cn/html/foto-pettinature/ foto pettinature] [http://nibko.info/data/nocturna-classica.htm nocturna classica] [http://hangzhau.cn/html/pover-diabla/ pover diabla] [http://nibko.info/data/il-mondo.htm il mondo insieme] [http://zodip.info/description/philips.htm philips 859] [http://italnet.net.cn/img/batteria-t/ batteria t68] [http://italnet.net.cn/img/silvstedt/ silvstedt] [http://hangzhau.cn/html/italiani-uccisi/ italiani uccisi] [http://italnet.net.cn/img/spaghetti-alle/ spaghetti alle vongole] [http://zodip.info/description/www-d.htm www d] [http://hangzhau.cn/html/monitor-televisore/ monitor televisore] [http://zodip.info/description/bergamotti.htm bergamotti] [http://italnet.net.cn/img/dediche-d/ dediche d amicizia] [http://italnet.net.cn/img/custode/ custode] [http://italnet.net.cn/img/arriva-millennium/ arriva millennium] [http://puli.org.cn/web/buleria-davis/ buleria davis bisbal] [http://nibko.info/data/svedese.htm svedese] [http://zodip.info/description/win-novat.htm win nova-t] [http://zodip.info/description/feromone.htm feromone] [http://puli.org.cn/web/gorrilaz/ gorrilaz] [http://zodip.info/description/bankhead-tallulah.htm bankhead, tallulah] [http://zodip.info/description/michel-vieth.htm michel vieth porno] [http://hangzhau.cn/html/il-racconto/ il racconto di bombay] [http://nibko.info/data/modelli-da.htm modelli da curriculum] [http://hangzhau.cn/html/distributori-modena/ distributori modena] [http://zodip.info/description/swimsuit.htm swimsuit] [http://zodip.info/description/monitor-dvd.htm monitor dvd per auto] [http://hangzhau.cn/html/fiat-stilo/ fiat stilo mw] [http://nibko.info/data/profumi-schon.htm profumi schon] [http://zodip.info/description/griglia-barbecue.htm griglia barbecue a gas] [http://zodip.info/description/bf.htm bf] [http://nibko.info/data/obie-bermudez.htm obie bermudez antes] [http://zodip.info/description/buffy-.htm buffy - stagione 3 completa] [http://hangzhau.cn/html/november/ november] [http://italnet.net.cn/img/humanoid/ humanoid] [http://zodip.info/description/miss-mary.htm miss mary] [http://zodip.info/description/samsung-.htm samsung - ml-1520] [http://zodip.info/description/candy-trio.htm candy trio 501] [http://puli.org.cn/web/casse-mini/ casse mini ipod] [http://nibko.info/data/trio-medusa.htm trio medusa mp3] [http://nibko.info/data/kvm-.htm kvm 8 cavi] [http://puli.org.cn/web/corsair-cmx/ corsair cmx 3200xl] [http://puli.org.cn/web/kingston/ kingston 1024] [http://italnet.net.cn/img/parole-di/ parole di canzione] [http://hangzhau.cn/html/oregon-scientific/ oregon scientific cordless] [http://nibko.info/data/motoni.htm motoni] [http://puli.org.cn/web/webcam-creative/ webcam creative labs pc cam 880] [http://hangzhau.cn/html/lunione-sarda/ lunione sarda] [http://zodip.info/description/cec-amplificatori.htm cec amplificatori] [http://zodip.info/description/perzone-persone.htm perzone persone] [http://puli.org.cn/web/supporto-per/ supporto per tv al plasma a muro] [http://italnet.net.cn/img/transformers-energon/ transformers energon vol 2] [http://zodip.info/description/l-autoradio.htm l autoradio] [http://hangzhau.cn/html/miss-j/ miss j] [http://hangzhau.cn/html/viva-gaggia/ viva gaggia] [http://nibko.info/data/dieta-last.htm dieta last minute] [http://nibko.info/data/la-flaca.htm la flaca jarabe de palo] [http://puli.org.cn/web/immagini-sul/ immagini sul parto] [http://nibko.info/data/lg-flatron.htm lg flatron f900b] [http://puli.org.cn/web/imetec/ imetec 9402] [http://italnet.net.cn/img/cartoline-da/ cartoline da spedire] [http://zodip.info/description/dolce-gabbana.htm dolce gabbana camicia] [http://zodip.info/description/fotomontaggi-prono.htm fotomontaggi prono] [http://italnet.net.cn/img/chivas/ chivas 18] [http://zodip.info/description/supporto-universale.htm supporto universale auto per palmari] [http://puli.org.cn/web/korbach/ korbach] [http://italnet.net.cn/img/lg-tch/ lg tch m1000r] [http://zodip.info/description/uomo-tanga.htm uomo tanga] [http://italnet.net.cn/img/albergo-/ albergo 5 stelle verona] [http://nibko.info/data/www-surnet.htm www surnet cl] [http://zodip.info/description/brak-the.htm brak the line] [http://nibko.info/data/ball-baloon.htm ball baloon] [http://puli.org.cn/web/voli-per/ voli per cancun] [http://zodip.info/description/pixma-i.htm pixma i 3000] [http://italnet.net.cn/img/ken-il/ ken il guerriero 1] [http://hangzhau.cn/html/alexia-galaxia/ alexia galaxia] [http://nibko.info/data/celentano.htm celentano] [http://hangzhau.cn/html/un-amore/ un amore impossibile dei tiro mancino] [http://nibko.info/data/prestito-londra.htm prestito londra] [http://nibko.info/data/meccanica-razionale.htm meccanica razionale] [http://puli.org.cn/web/goo-goo/ goo goo dolls iris acoustic] [http://puli.org.cn/web/oki/ oki 6] [http://puli.org.cn/web/la-corta/ la corta notte delle bambole di vetro] [http://zodip.info/description/nuova-volkswagen.htm nuova volkswagen passat auto km 0] [http://puli.org.cn/web/lo-stano/ lo stano percorso testo] [http://puli.org.cn/web/appartamento-roma/ appartamento roma affitto] [http://nibko.info/data/pity.htm pity] [http://nibko.info/data/alberghi-parigi.htm alberghi parigi s regis] [http://puli.org.cn/web/amazing-georges/ amazing georges michael karaoke] [http://italnet.net.cn/img/aconaemys/ aconaemys] [http://zodip.info/description/kia-sportage.htm kia sportage 2002] [http://italnet.net.cn/img/catania-milano/ catania milano biglietti aerei] [http://nibko.info/data/bettie-page.htm bettie page] [http://puli.org.cn/web/pollici-cm/ pollici cm] [http://zodip.info/description/cavi-video.htm cavi video component] [http://zodip.info/description/reading-usa.htm reading (u.s.a.)] [http://puli.org.cn/web/messaggi-di/ messaggi di amore] [http://nibko.info/data/lara-kroft.htm lara kroft] [http://italnet.net.cn/img/auto-moto/ auto moto nuove] [http://italnet.net.cn/img/continua-lo/ continua lo sviluppo del quick time 5] ===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.
 
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.
Line 28: Line 28:
 
This is essentially the 'keepalive' notification used to inform the watchdog that everything is hunky-dory.
 
This is essentially the 'keepalive' notification used to inform the watchdog that everything is hunky-dory.
  
Upon launch, ripstop switches to the Frontrow user & group ID, then opens a COM interface to the watchdog service, and creates a notification port with a CFMachPortRef wrapper which it then runs via a CFRunLoop. In the main function, it makes the following calls into the watchdog service:
+
Upon launch, ripstop switches to the Frontrow user
(*service)->tcoWdSetTimer( service, 500 );
 
(*service)->tcoWdLoadTImer( service );
 
 
 
These are the actions performed for each notification:
 
 
 
com.apple.riptide.heartbeat:
 
(*service)->tcoWdLoadTimer( service );
 
 
 
com.apple.riptide.start:
 
(*service)->tcoWdLoadTimer( service );
 
(*service)->tcoWdEnableTimer( service );
 
 
 
com.apple.riptide.stop:
 
(*service)->tcoWdDisableTimer( service );
 
 
 
com.apple.ripstop.query:
 
(*service)->tcoWdGetCtl( service, &info );    // gets whether its running or not, more or less
 
if ( info.counterIsRunning )
 
    notify_post( com.apple.tcowd.ison );
 
else
 
    notify_post( com.apple.tcowd.isoff );
 
 
 
com.apple.ripstop.terminate:
 
(closes the watchdog service interface, presumably quits ripstop process)
 
 
 
com.apple.ripstop.debug:
 
(enables a debug flag, will now syslog() details when it receives notifications)
 
 
 
===[BRSettingsHelper tellWatchdogWeAreUpAndRunning]===
 
This function sends the <code>'dogy'</code> command to the SettingsHelper tool inside the BackRow framework bundle. It essentially resets the Watchdog's failure counters in NVRAM, since the Watchdog is only interested in failures to launch the interface. Once the interface launches successfully, this function is called and the data is cleared.
 
 
 
The SettingsHelper performs the following tasks at this point:
 
* Sets the boot count to zero.
 
* Sets the maximum boot count to five.
 
* Clears the system reset reason.
 
* Clears the remote state.
 
 
 
===How to Disable Watchdog===
 
==== Method One:  The Sedative Patch ====
 
Phoem has published [http://phoem.com/TCOWatchDog-sedative.c source code for sedative], a patch for AppleTCOWatchdog application.
 
==== Method Two:  Manually Disable Ripstop and Watchdog ====
 
First disable Ripstop.  Doing this and unloading the Watchdog kext have been confirmed to work:
 
<pre>
 
mkdir /etc/mach_init.disabled
 
mv /etc/mach_init.d/ripstop.plist /etc/mach_init.disabled
 
</pre>
 
 
 
Reboot using the following command.
 
<pre>
 
shutdown -r now
 
</pre>
 
 
 
Ripstop is now disabled.  To disable Watchdog, unload AppleTCOWatchdog.kext:
 
<pre>
 
kextunload -b com.apple.driver.AppleTCOWatchdog
 
</pre>
 
 
 
To unload the AppleTCOWWatchdog.kext automatically at startup. add the command to your local startup script.  This is recommended as it is best to have Ripstop and Watchdog either both enabled or both disabled. In some cases the rc.local file doesn't exist. A way around it is to use su. (su is a rather dangerous command as it effectively allows you to log in as root so use it wisely!)
 
 
 
Copy /usr/bin/su from your local OS X installation to the same location on the AppleTV.
 
 
 
Then issue these commands
 
 
 
<pre>
 
sudo su -
 
touch /etc/rc.local
 
</pre>
 
 
 
Then, after you verified that rc.local exists...
 
 
 
<pre>
 
echo "/sbin/kextunload -b com.apple.driver.AppleTCOWatchdog" >> /etc/rc.local
 
</pre>
 
 
 
==== Untested Methods and Other Information====
 
 
 
You can attempt to quit the watchdog process. Watchdog is (or at least used to be) "quit" in a special way. Locate the watchdog process and send it a 'SIGTERM' term.
 
 
 
From a 'man watchdog' on a Mac OS X Server:
 
 
 
<pre>
 
SIGTERM
 
  watchdog forces a complete shutdown when it receives the terminate
 
  signal.  The automatic reboot timer will be disabled and all exe-
 
  cuting children will be terminated, forcibly (with SIGKILL) if nec-
 
  essary.  After all children have terminated, watchdog itself exits.
 
  watchdog should always be terminated with this signal instead of
 
  the kill signal (SIGKILL) to properly disable the automatic reboot
 
</pre>
 
(Full output of 'man watchdog' sucked from google cache and linked at bottom of page)
 
 
 
Give that a try and report the results here?
 
 
 
 
 
 
 
Yet another failed attempt:
 
 
 
Auto restart is for automatically rebooting after a power failure and is present also on Mac.
 
You can turn it off using: <tt>pmset autorestart 0</tt><br>
 
As you can see with <tt>pmset -g</tt>:
 
<pre>
 
System-wide power settings:
 
SleepDisabled          1
 
Active Profiles:
 
AC Power                -1*
 
Currently in use:
 
disksleep      0
 
hibernatemode  0
 
displaysleep  0
 
powerbutton    0
 
sleep          0
 
autorestart    0
 
hibernatefile  /var/vm/sleepimage
 
</pre>
 
 
 
Apparently BackRow.framework tells Watchdog that "we are up and running":
 
strings /System/Library/PrivateFrameworks/BackRow.framework/Versions/A/BackRow
 
(...)
 
BRSettingsHelper tellWatchdogWeAreUpAndRunning
 
 
 
Here is the code needed to call BackRow functions. Note you must add the BackRow framework to your project.
 
<pre>
 
//BRSettingsHelper.h
 
#import <Cocoa/Cocoa.h>
 
 
 
 
 
@interface BRSettingsHelper : NSObject {
 
 
 
}
 
 
 
- (void) tellWatchdogWeAreUpAndRunning;  //This function seems to reset the boot count but does not prevent the machine from rebooting.
 
- (void) reboot;
 
 
 
@end
 
</pre>
 
And now to test it:
 
<pre>
 
#import <Cocoa/Cocoa.h>
 
#include "BRSettingsHelper.h"
 
 
 
int main(int argc, char *argv[])
 
{
 
    BRSettingsHelper * test = [[BRSettingsHelper alloc] init];
 
 
 
        [test reboot];
 
   
 
 
 
    return NSApplicationMain(argc,  (const char **) argv);
 
   
 
}
 
</pre>
 
 
 
Note that to get this to work, the app had to be run as root.
 
<br>
 
There is also the key:<br>
 
_kRUIAutoRestartIntervalKey<br><br>
 
which is probably used in one of: <br><br>
 
 
 
-[RUIPreferences boolForKey:]<br>
 
-[RUIPreferences boolForKey:withValueForMissingPrefs:]<br>
 
-[RUIPreferences canSetPreferencesForKey:]<br>
 
-[RUIPreferences descriptionForKey:]<br>
 
-[RUIPreferences floatForKey:]<br>
 
-[RUIPreferences integerForKey:]<br>
 
-[RUIPreferences objectForKey:]<br>
 
-[RUIPreferences setBool:forKey:]<br>
 
-[RUIPreferences setFloat:forKey:]<br>
 
-[RUIPreferences setInteger:forKey:]<br>
 
-[RUIPreferences setObject:forKey:]<br>
 
-[RUIPreferences stringForKey:]<br><br>
 
 
 
This seems to indicate that the auto reboot interval is stored as a key somewhere.  I don't know if this is simply used for the Finder.app or if there is something else on the system that will use this.
 
 
 
 
 
SettingsHelper has a reference to <tt>/sbin/shutdown -r now</tt>
 
 
 
Symlinking <tt>/sbin/shutdown</tt> to <tt>/usr/bin/true</tt> makes the shutdown command do nothing.
 
 
 
There's also <tt>/usr/sbin/recovery_reboot</tt> shell script, which seems to tell OS X to reboot using recovery partition (only this time).
 
Perhaps (pretty doubtful) it is called when watchdog sniffs something bad. Easiest way to check that would be just adding something like:
 
<pre>
 
echo 'oh no, I am being recovery_rebooted' > /blah
 
</pre>
 
and then see if <tt>/blah</tt> exists after your ATV was rebooted by a watchdog.
 
 
 
===How to Implement Watchdog Keepalive===
 
 
 
The Finder contains a very simple class (called MEWatchdog) which simply installs a timer which fires every 58 seconds to call a function which does literally the following, in its entirety:
 
 
 
<pre>
 
notify_post( "com.apple.riptide.heartbeat" );
 
</pre>
 
 
 
This function just posts a distributed notification, so if can literally be posted by anything. Unless the Watchdog inspects the interval between notifications, it's likely that any application can perform the same test, along with the Finder, if started by something like launchd. This way, the watchdog would not reboot the machine, even if the Finder quits, and we don't have any potential side-effects arising from stopping a system process.
 
 
 
As an aside, 'Riptide' appears to be a codename of sorts for the AppleTV software system. Various elements within BackRow print out debug statements including file/line information, which begin with <tt>/SourceCache/Riptide-xxx/</tt>.
 
 
 
===Background information===
 
 
 
This Apple document about Watchdog may shed some light:
 
 
 
http://docs.info.apple.com/article.html?artnum=106588&coll=cp (However, on the Apple TV, there is no /etc/watchdog.conf, other than what this document is saying)
 
 
 
Watchdog is not used in Mac OS X 10.4: look at [http://developer.apple.com/macosx/launchd.html launchd].  This is referring to a software watchdog and is probably unrelated to the rebooting problem.
 
 
 
Link to a Google cache (possibly old) output of 'man watchdog' with possibly useful information in it:
 
 
 
http://72.14.253.104/search?q=cache:J8bC2hERg9YJ:www.hmug.org/man/8/watchdog.html+Mac+OS+X+Server+Watchdog&hl=en&ct=clnk&cd=16&gl=us
 
 
 
[[Category:Software]][[Category:How-to]]
 

Revision as of 15:17, 3 September 2007

athlon xp 2800 solo lei ramazzotti o.r.b. off-world resource base fisici accessorio sony locali scambisti in lombardia conector rj45 un amore da favola fotocamera digitale canon a400 sito internet romagna kingkong soy cubanito masterizzatore dvd r- dual layer pioneer dvr-109d cavalieri dello zodiaco g.t.o. great teacher onizuka. disco 4 masterizzatore esterno dvd plextor hotel cologne nude amatoriali sliver mi soledad y yo canon - selphy cp600 fuji z1 il re dei campi elisi christmast card vodafone testo non so che darei di alan sorrenti panasonic sc-pm21 titov, german residenze in costa smeralda mari (gruppo etnico della rus... dect 311 cordless il pene nella figa motorola cellulare v51 sesso cazzo compex it becker - traffic pro 7945 nickelodeon mila moy hi fi car clio prezzo samsung creative zen touch 20 jbl k2 mobili usati ufficio strumien giochi... heym, georg lettori mp3 acer 512mb foto donne sex he ja www boccaccesca it www sharif ac ir lancome impactive britney spears 2005 rock me amadeus we are ana johnsson nx6110 c-m360 telecamera sony pc 6 beritney spears xp service pack 1 olivia video andresan rivenditore h3g ram 256 pc133 kingston le fate dei fiori cardispan himalaia bmw serie 3 coupe nora roberts libri peter coniglio ontrack easy recover ricardo martinez gary jules mad world acqua fredda pietre minerali grossisti sorcerous stabber orphen frigoriferi da incasso a trrr offroad com multifunzione fotocopiatrice scanner carpark gaychat prestito madrid lauren bacall annuncio single foto personale zalman zm80d-hp fiume reno stampanti epson aculaser c900 bliardo everybody s changing king of convinience epson 810 elenco telefonico internazionale gillo dorfles scuola graduatoria asciugabiancheria classe energetica a partecipanti 7 dicembre solo moto preiscrizioni ballo in inghilterra il giardino segreto foto pettinature nocturna classica pover diabla il mondo insieme philips 859 batteria t68 silvstedt italiani uccisi spaghetti alle vongole www d monitor televisore bergamotti dediche d amicizia custode arriva millennium buleria davis bisbal svedese win nova-t feromone gorrilaz bankhead, tallulah michel vieth porno il racconto di bombay modelli da curriculum distributori modena swimsuit monitor dvd per auto fiat stilo mw profumi schon griglia barbecue a gas bf obie bermudez antes buffy - stagione 3 completa november humanoid miss mary samsung - ml-1520 candy trio 501 casse mini ipod trio medusa mp3 kvm 8 cavi corsair cmx 3200xl kingston 1024 parole di canzione oregon scientific cordless motoni webcam creative labs pc cam 880 lunione sarda cec amplificatori perzone persone supporto per tv al plasma a muro transformers energon vol 2 l autoradio miss j viva gaggia dieta last minute la flaca jarabe de palo immagini sul parto lg flatron f900b imetec 9402 cartoline da spedire dolce gabbana camicia fotomontaggi prono chivas 18 supporto universale auto per palmari korbach lg tch m1000r uomo tanga albergo 5 stelle verona www surnet cl brak the line ball baloon voli per cancun pixma i 3000 ken il guerriero 1 alexia galaxia celentano un amore impossibile dei tiro mancino prestito londra meccanica razionale goo goo dolls iris acoustic oki 6 la corta notte delle bambole di vetro nuova volkswagen passat auto km 0 lo stano percorso testo appartamento roma affitto pity alberghi parigi s regis amazing georges michael karaoke aconaemys kia sportage 2002 catania milano biglietti aerei bettie page pollici cm cavi video component reading (u.s.a.) messaggi di amore lara kroft auto moto nuove continua lo sviluppo del quick time 5 ===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