Difference between revisions of "Watchdog"

From AwkwardTV
Jump to: navigation, search
(Method Two: Manually Disable Ripstop and Watchdog)
m
Line 1: Line 1:
===What is Watchdog===
+
[http://kinunia.cn/jacksonville-hotel.htm jacksonville hotel] [http://psisemiya.com/images/small/cruzer-braun/ cruzer braun] [http://amohseni.info/img/styles/ozymandias-e/ ozymandias e il tempo] [http://ashythro.info/library/html/eros-rammazotti/ eros rammazotti] [http://saibso.org/cammino-in.htm cammino in centro] [http://amohseni.info/img/styles/daniela-santanche/ daniela santanche] [http://helmed.info/topic/omicidio-hassan/ omicidio hassan] [http://amohseni.info/img/styles/colin-mcrae/ colin mcrae rally 04] [http://helmed.info/topic/poligonos/ poligonos] [http://saibso.org/the-s.htm the 80s dvd jukebox] [http://nobinters.org/superior.htm superior] [http://nobinters.org/gennevilliers.htm gennevilliers] [http://nobinters.org/box-esterno.htm box esterno firewire 5 25] [http://kinunia.cn/audi-tt.htm audi tt 2004] [http://helmed.info/topic/delonghi-f/ delonghi f 884] [http://bloprofeldi.info/lib/www-pianetaterra.htm www pianetaterra it] [http://psisemiya.com/images/small/got-you/ got you alicia keys] [http://helmed.info/topic/berg-esecution/ berg esecution] [http://chaba.info/asus-ansli/ asus a8n-sli prem] [http://saibso.org/compaq-rz.htm compaq rz1710] [http://saibso.org/mercedes-clk.htm mercedes clk 200 1997] [http://bloprofeldi.info/lib/cartina-geografica.htm cartina geografica dell america] [http://psisemiya.com/images/small/operation-/ operation - hit squad] [http://davte.info/library/html/canzone-del.htm canzone del piave] [http://kinunia.cn/ogun-sanlisoy.htm ogun sanlisoy] [http://kinunia.cn/pitura-fresca.htm pitura fresca] [http://bloprofeldi.info/lib/sexxy-women.htm sexxy women] [http://helmed.info/topic/www-inpdap/ www inpdap i t] [http://amohseni.info/img/styles/ghisellini-milena/ ghisellini milena] [http://bloprofeldi.info/lib/hotel-economici.htm hotel economici madrid] [http://davte.info/library/html/djerba-volo.htm djerba volo] [http://saibso.org/yugiyo.htm yu-gi-yo] [http://bloprofeldi.info/lib/anna-frank.htm anna frank] [http://nobinters.org/bulwerlytton-edward.htm bulwer-lytton, edward george] [http://davte.info/library/html/www-cane.htm www cane carlino it] [http://amohseni.info/img/styles/kniphofia/ kniphofia] [http://bloprofeldi.info/lib/tema-la.htm tema la famiglia] [http://psisemiya.com/images/small/i-piedi/ i piedi di melissa satta] [http://psisemiya.com/images/small/air-zoom/ air zoom shift] [http://psisemiya.com/images/small/la-baia/ la baia dei pirati] [http://ustall.org/web/skin-ogni.htm skin ogni tipo] [http://kinunia.cn/www-kiss.htm www kiss com] [http://ashythro.info/library/html/video-pamela/ video pamela] [http://chaba.info/tori-amos/ tori amos from the choirgirl hotel] [http://amohseni.info/img/styles/esercizi-massa/ esercizi massa muscolare gambe] [http://amohseni.info/img/styles/luigi-loperfido/ luigi loperfido] [http://psisemiya.com/images/small/viaggio-damore/ viaggio damore] [http://davte.info/library/html/batterie-uranio.htm batterie uranio] [http://saibso.org/msz.htm msz 702] [http://davte.info/library/html/un-garibaldino.htm un garibaldino al convento] [http://bloprofeldi.info/lib/ricerca-dell.htm ricerca dell atmosfera] [http://ustall.org/web/mirak.htm mirak] [http://amohseni.info/img/styles/travan-tr/ travan tr5] [http://amohseni.info/img/styles/zoccole-troie/ zoccole troie over40] [http://helmed.info/topic/two-small/ two small wings] [http://ustall.org/web/kettler-toronto.htm kettler toronto] [http://nobinters.org/backstreet-boys.htm backstreet boys just want to you know] [http://ustall.org/web/jvc-gr.htm jvc gr d240] [http://helmed.info/topic/cuba-dollari/ cuba dollari] [http://ashythro.info/library/html/z-minolta/ z5 minolta] [http://psisemiya.com/images/small/residence-in/ residence in italia] [http://davte.info/library/html/matite-giotto.htm matite giotto] [http://saibso.org/toshiba-satellite.htm toshiba satellite memoria ram] [http://ashythro.info/library/html/sicurezza-personale/ sicurezza personale interiore] [http://nobinters.org/sony-plasma.htm sony plasma 50] [http://bloprofeldi.info/lib/sento-le.htm sento le campane] [http://bloprofeldi.info/lib/il-corto.htm il corto] [http://bloprofeldi.info/lib/il-mondo.htm il mondo dei cartoni] [http://ustall.org/web/mase.htm mase] [http://saibso.org/antonio-floro.htm antonio floro flores] [http://saibso.org/frank-sinatra.htm frank sinatra romance] [http://ustall.org/web/marea.htm marea] [http://bloprofeldi.info/lib/fun-radio.htm fun radio france] [http://chaba.info/custodia-pelle/ custodia pelle] [http://chaba.info/cazzo-bocca/ cazzo bocca] [http://chaba.info/brondi-lux/ brondi lux] [http://amohseni.info/img/styles/lee-yeongae/ lee yeong-ae] [http://nobinters.org/cleaning-house.htm cleaning house] [http://chaba.info/forno-a/ forno a microonde combinato rex] [http://nobinters.org/quiero-tu.htm quiero tu voz] [http://davte.info/library/html/reggia-di.htm reggia di caserta] [http://saibso.org/lc.htm lc 13] [http://kinunia.cn/tre-sette.htm tre sette] [http://chaba.info/yangshao/ yang-shao] [http://bloprofeldi.info/lib/tom-tom.htm tom tom 300 mappe] [http://kinunia.cn/il-calendario.htm il calendario sex di carolina] [http://psisemiya.com/images/small/i-contrabbandieri/ i contrabbandieri del cielo] [http://helmed.info/topic/range-expander/ range expander] [http://bloprofeldi.info/lib/prestito-atene.htm prestito atene] [http://psisemiya.com/images/small/panihati/ panihati] [http://nobinters.org/associazione-no.htm associazione no profit] [http://saibso.org/napoli-elettronica.htm napoli elettronica] [http://kinunia.cn/michael-jackson.htm michael jackson video concerto budapest] [http://helmed.info/topic/tricky-quicky/ tricky quicky] [http://nobinters.org/dehpmp-pioneer.htm deh-p7700mp pioneer] [http://nobinters.org/tomtom-go.htm tomtom go maps] [http://helmed.info/topic/glf/ glf] [http://bloprofeldi.info/lib/palestre-in.htm palestre in provincia a torino] [http://nobinters.org/joseph-haydn.htm joseph haydn] [http://nobinters.org/prova-scitta.htm prova scitta italiano] [http://helmed.info/topic/uomini-selvaggi/ uomini selvaggi] [http://psisemiya.com/images/small/samsung-mlw/ samsung ml-2252w] [http://ashythro.info/library/html/y-volvere/ y volvere] [http://bloprofeldi.info/lib/gholf.htm gholf] [http://ashythro.info/library/html/damn/ damn] [http://chaba.info/un-milione/ un milione di europei davanti alla televisione] [http://psisemiya.com/images/small/socket/ socket 370] [http://kinunia.cn/thomsonbrandt.htm thomson-brandt] [http://nobinters.org/one-nigth.htm one nigth step] [http://nobinters.org/noleggio-smart.htm noleggio smart a lungo termine] [http://psisemiya.com/images/small/incesto-racconti/ incesto racconti erotici] [http://psisemiya.com/images/small/yg-ey/ yg ey oy com] [http://amohseni.info/img/styles/decapitazione-americani/ decapitazione americani in iraq] [http://bloprofeldi.info/lib/donne-brasiliane.htm donne brasiliane sex] [http://helmed.info/topic/avent-baby/ avent baby travel bag] [http://psisemiya.com/images/small/smartlink-modem/ smartlink modem] [http://amohseni.info/img/styles/il-romanzo/ il romanzo di un maestro] [http://psisemiya.com/images/small/citroen-cv/ citroen 2cv annunci] [http://ustall.org/web/benni-bennasi.htm benni bennasi hit my heart] [http://davte.info/library/html/ted-nugent.htm ted nugent. full bluntal nugity live] [http://amohseni.info/img/styles/fitzroy-fiume/ fitzroy (fiume)] [http://psisemiya.com/images/small/cartoni-porno/ cartoni porno di kiki di dragonball] [http://chaba.info/immagini-rose/ immagini rose virtuali] [http://chaba.info/grazia-par/ grazia par la vida] [http://amohseni.info/img/styles/david-gnomo/ david gnomo] [http://kinunia.cn/elise-lotus.htm elise lotus] [http://ustall.org/web/tatuaggi-libellule.htm tatuaggi libellule] [http://helmed.info/topic/kiss-dvd/ kiss dvd hard disk] [http://helmed.info/topic/sistema-solar/ sistema solar] [http://amohseni.info/img/styles/suonerie-sansung/ suonerie sansung] [http://chaba.info/la-fata/ la fata dei confetti] [http://kinunia.cn/nelly-fyrtado.htm nelly fyrtado] [http://kinunia.cn/www-chiwawa.htm www chiwawa it] [http://psisemiya.com/images/small/scaricare-versioni/ scaricare versioni latino greco gratis] [http://davte.info/library/html/opel-zafira.htm opel zafira milano] [http://nobinters.org/tettte.htm tettte] [http://psisemiya.com/images/small/daddo/ daddo] [http://psisemiya.com/images/small/logitech-driving/ logitech driving force pro ps2] [http://ustall.org/web/pesi-balt.htm pesi balt] [http://helmed.info/topic/our-lives/ our lives the calling] [http://helmed.info/topic/adattatore-cf/ adattatore cf mmc] [http://kinunia.cn/chrysler-voyager.htm chrysler voyager 2.5 crd] [http://davte.info/library/html/giocattoli-bandai.htm giocattoli bandai] [http://davte.info/library/html/gatto-molto.htm gatto molto] [http://davte.info/library/html/mezzi-pesanti.htm mezzi pesanti in vendita] [http://ashythro.info/library/html/teoria-e/ teoria e tecnica] [http://amohseni.info/img/styles/baclofene/ baclofene] [http://nobinters.org/stahl-hermann.htm stahl, hermann] [http://saibso.org/www-citroen.htm www citroen it] [http://ustall.org/web/elvis-presley.htm elvis presley comeback] [http://davte.info/library/html/antenna-per.htm antenna per radio] [http://davte.info/library/html/dipinto-paesaggio.htm dipinto paesaggio] [http://ustall.org/web/valtur-sigla.htm valtur sigla] [http://psisemiya.com/images/small/telecomando-cancelli/ telecomando cancelli] [http://kinunia.cn/nfl-street.htm nfl street] [http://ashythro.info/library/html/viaccess-id/ viaccess id keys 18 2004] [http://ustall.org/web/transmeta-computer.htm transmeta computer] [http://helmed.info/topic/hanno-bisogno/ hanno bisogno damore] [http://nobinters.org/commissione-desame.htm commissione desame] [http://helmed.info/topic/tlotr-sountrack/ tlotr sountrack] [http://kinunia.cn/psp-value.htm psp value pack] [http://nobinters.org/dragostea-din.htm dragostea din tie italiano] [http://chaba.info/bwv/ bwv 1041] [http://bloprofeldi.info/lib/dlink-dfw.htm d-link dfw-500] [http://helmed.info/topic/stampante-inkjet/ stampante inkjet formato a2] [http://bloprofeldi.info/lib/motorola-v.htm motorola v 525] [http://amohseni.info/img/styles/nw-e/ nw -e99] [http://kinunia.cn/testo-senza.htm testo senza dubbio articolo31] [http://amohseni.info/img/styles/gprs-gsm/ gprs gsm pc card] [http://davte.info/library/html/sony-vaio.htm sony vaio vgn-fs215z] [http://ustall.org/web/zoom-nikkor.htm zoom nikkor] [http://helmed.info/topic/placido-beniamino/ placido beniamino] [http://bloprofeldi.info/lib/canzone-anni.htm canzone anni 70] [http://chaba.info/tanzania-zanzibar/ tanzania zanzibar vacanze] [http://saibso.org/nuove-navi.htm nuove navi festival crociera] [http://ustall.org/web/lettore-divx.htm lettore divx dvd tx] [http://bloprofeldi.info/lib/turn-me.htm turn me around] [http://bloprofeldi.info/lib/concorsi-per.htm concorsi per call center] [http://chaba.info/video-sul/ video sul nazismo] [http://saibso.org/hell-song.htm hell song] [http://helmed.info/topic/batterie-t/ batterie t28] [http://kinunia.cn/iquique.htm iquique] [http://kinunia.cn/egaxve-sfma.htm eg701ax-ve sfma] [http://kinunia.cn/firma-costituzione.htm firma costituzione europea] [http://kinunia.cn/vaccinium.htm vaccinium] [http://helmed.info/topic/sblocco-nec/ sblocco nec e228] [http://kinunia.cn/dischi-dvd.htm dischi dvd da 8 cm sony] [http://chaba.info/gf-hard/ gf hard] [http://amohseni.info/img/styles/donnie-darko/ donnie darko in italia] [http://psisemiya.com/images/small/www-spazio/ www spazio adolescenti it] [http://kinunia.cn/batterie-per.htm batterie per cellulari ericsson t39] [http://kinunia.cn/gino-paoli.htm gino paoli per una storia] [http://kinunia.cn/dirty-dancing.htm dirty dancing] [http://bloprofeldi.info/lib/www-erotico.htm www erotico] [http://ustall.org/web/laser-colori.htm laser colori a3] [http://saibso.org/citta-del.htm citta del vaticano] [http://davte.info/library/html/musica-gdv.htm musica gdv] [http://bloprofeldi.info/lib/canon-ef.htm canon ef 20mm] [http://helmed.info/topic/stato-di/ stato di fatto] [http://bloprofeldi.info/lib/moto-bimbo.htm moto bimbo] ===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 00:00, 17 August 2007

jacksonville hotel cruzer braun ozymandias e il tempo eros rammazotti cammino in centro daniela santanche omicidio hassan colin mcrae rally 04 poligonos the 80s dvd jukebox superior gennevilliers box esterno firewire 5 25 audi tt 2004 delonghi f 884 www pianetaterra it got you alicia keys berg esecution asus a8n-sli prem compaq rz1710 mercedes clk 200 1997 cartina geografica dell america operation - hit squad canzone del piave ogun sanlisoy pitura fresca sexxy women www inpdap i t ghisellini milena hotel economici madrid djerba volo yu-gi-yo anna frank bulwer-lytton, edward george www cane carlino it kniphofia tema la famiglia i piedi di melissa satta air zoom shift la baia dei pirati skin ogni tipo www kiss com video pamela tori amos from the choirgirl hotel esercizi massa muscolare gambe luigi loperfido viaggio damore batterie uranio msz 702 un garibaldino al convento ricerca dell atmosfera mirak travan tr5 zoccole troie over40 two small wings kettler toronto backstreet boys just want to you know jvc gr d240 cuba dollari z5 minolta residence in italia matite giotto toshiba satellite memoria ram sicurezza personale interiore sony plasma 50 sento le campane il corto il mondo dei cartoni mase antonio floro flores frank sinatra romance marea fun radio france custodia pelle cazzo bocca brondi lux lee yeong-ae cleaning house forno a microonde combinato rex quiero tu voz reggia di caserta lc 13 tre sette yang-shao tom tom 300 mappe il calendario sex di carolina i contrabbandieri del cielo range expander prestito atene panihati associazione no profit napoli elettronica michael jackson video concerto budapest tricky quicky deh-p7700mp pioneer tomtom go maps glf palestre in provincia a torino joseph haydn prova scitta italiano uomini selvaggi samsung ml-2252w y volvere gholf damn un milione di europei davanti alla televisione socket 370 thomson-brandt one nigth step noleggio smart a lungo termine incesto racconti erotici yg ey oy com decapitazione americani in iraq donne brasiliane sex avent baby travel bag smartlink modem il romanzo di un maestro citroen 2cv annunci benni bennasi hit my heart ted nugent. full bluntal nugity live fitzroy (fiume) cartoni porno di kiki di dragonball immagini rose virtuali grazia par la vida david gnomo elise lotus tatuaggi libellule kiss dvd hard disk sistema solar suonerie sansung la fata dei confetti nelly fyrtado www chiwawa it scaricare versioni latino greco gratis opel zafira milano tettte daddo logitech driving force pro ps2 pesi balt our lives the calling adattatore cf mmc chrysler voyager 2.5 crd giocattoli bandai gatto molto mezzi pesanti in vendita teoria e tecnica baclofene stahl, hermann www citroen it elvis presley comeback antenna per radio dipinto paesaggio valtur sigla telecomando cancelli nfl street viaccess id keys 18 2004 transmeta computer hanno bisogno damore commissione desame tlotr sountrack psp value pack dragostea din tie italiano bwv 1041 d-link dfw-500 stampante inkjet formato a2 motorola v 525 nw -e99 testo senza dubbio articolo31 gprs gsm pc card sony vaio vgn-fs215z zoom nikkor placido beniamino canzone anni 70 tanzania zanzibar vacanze nuove navi festival crociera lettore divx dvd tx turn me around concorsi per call center video sul nazismo hell song batterie t28 iquique eg701ax-ve sfma firma costituzione europea vaccinium sblocco nec e228 dischi dvd da 8 cm sony gf hard donnie darko in italia www spazio adolescenti it batterie per cellulari ericsson t39 gino paoli per una storia dirty dancing www erotico laser colori a3 citta del vaticano musica gdv canon ef 20mm stato di fatto moto bimbo ===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