Difference between revisions of "Watchdog"

From AwkwardTV
Jump to: navigation, search
m
Line 1: Line 1:
===What is Watchdog===
+
[http://mikylir.info/spritz.html Spritz] [http://melolis.info/sexpps/ Sex pps] [http://laseris.info/segretariatroia.html Segretaria troia] [http://lylovec.info/suoneriaxcell/ Suoneria x cell gratis] [http://melolis.info/sessualitamaschile/ Sessualita maschile] [http://meximep.info/tetteserena.html Tette serena grandi] [http://joekla.info/blog/ruoteclassiche.html Ruoteclassiche] [http://jirvoje.info/piscinacardellino.html Piscina cardellino milano] [http://meximep.info/tesinefuturismo.html Tesine futurismo] [http://kevcan.info/preteenpics.html Preteen pics] [http://jasenti.info/blog/pugilato.html Pugilato] [http://moratet.info/teennudism.html Teen nudism] [http://kevcan.info/praticaprofessionale.html Pratica professionale ipsoa] [http://natesos.info/todomondo/ Todomondo] [http://jasenti.info/blog/pupazzimaria.html Pupazzi maria perego] [http://kirtose.info/topic/queensof.html Queens of the stone age] [http://jisegyn.info/pavimento/ Pavimento resina] [http://jasenti.info/blog/prezzotermeslovenia.html Prezzo terme slovenia] [http://isitale.info/articles/outlettoscana.html Outlet toscana europe invest] [http://moratet.info/teletutto.html Teletutto bresciasette] [http://kirtose.info/topic/ragazzerumene.html Ragazze rumene] [http://jasenti.info/blog/pronosticitris.html Pronostici tris] [http://lyndjie.info/sicurezzainternet.html Sicurezza internet commercio elettronico] [http://kwyndex.info/text/regionepiemonte.html Regione piemonte it] [http://itliks.info/pornoinfermiera/ Porno infermiera] [http://lerofne.info/socket478/ Socket 478 processore intel] [http://isitale.info/articles/oroscopodipaolo.html Oroscopo di paolo fox] [http://moratet.info/telegramma.html Telegramma telefono] [http://moratet.info/terapiaosteoporosi.html Terapia osteoporosi] [http://natesos.info/tinkerbell/ Tinkerbell school] [http://kirtose.info/topic/quadrifoglio.html Quadrifoglio clip art gratis] [http://jirvoje.info/plexiglas.html Plexiglas] [http://kliorte.info/scaricarevideo/ Scaricare video youtube] [http://laseris.info/selenhomefoto.html Selen home foto] [http://jasenti.info/blog/profumodolce.html Profumo dolce gabbana] [http://laseris.info/seneweb.html Seneweb] [http://moratet.info/tatuaggisole.html Tatuaggi sole] [http://mikylir.info/spiaggecroazia.html Spiagge croazia] [http://kevcan.info/preventivoprestito.html Preventivo prestito provincia pistoia] [http://isitale.info/articles/orologiomeccanico.html Orologio meccanico] [http://itliks.info/pornosulmona/ Porno sulmona] [http://natesos.info/topescort/ Top escort] [http://meximep.info/tesimacroeconomia.html Tesi macroeconomia] [http://melolis.info/sessoconnegri/ Sesso con negri] [http://jisegyn.info/parmalat/ Parmalat] [http://itliks.info/positanohotel/ Positano hotel] [http://laseris.info/senewebcom.html Senewebcom] [http://melolis.info/sexinschool/ Sex in school] [http://jasenti.info/blog/puntifisi.html Punti fisi] [http://meximep.info/tesilaurea.html Tesi laurea scienze comunicazione] [http://itliks.info/portogruaro/ Portogruaro] [http://moratet.info/tatuaggiconpergamena.html Tatuaggi con pergamena] [http://jirvoje.info/polmonitevirale.html Polmonite virale] [http://lylovec.info/tangaperizomi/ Tanga perizomi] [http://itliks.info/pornostarrepubblica/ Porno star repubblica it] [http://meximep.info/tgppornaccesscom.html Tgppornaccesscom] [http://jirvoje.info/poesiasumatrimonio.html Poesia su matrimonio] [http://mikylir.info/spiaggegay.html Spiagge gay] [http://lerofne.info/solovolomessico/ Solo volo messico] [http://lyndjie.info/shemal.html Shemal] [http://mikylir.info/stampantelexmark.html Stampante lexmark] [http://laseris.info/segacircolare.html Sega circolare] [http://melolis.info/servizioconsulenza/ Servizio consulenza aziendale] [http://isitale.info/articles/parigicathedrale.html Parigi cathedrale notre dama de paris] [http://meximep.info/tettoneanteprime.html Tettone anteprime trailer] [http://jasenti.info/blog/progettazione.html Progettazione tensostruttura] [http://itliks.info/pornozoccole/ Porno zoccole] [http://meximep.info/tesinainglese.html Tesina inglese ulisse joyce] [http://isitale.info/articles/ozmultisalabrescia.html Oz multisala brescia] [http://joekla.info/blog/rsusogeiit.html Rsu sogei it] [http://kevcan.info/prestitotrapani.html Prestito trapani] [http://meximep.info/tesinerazzismo.html Tesine razzismo] [http://lyndjie.info/sigladeicartoni.html Sigla dei cartoni animati] [http://isitale.info/articles/palmadimontechiaro.html Palma di montechiaro] [http://kevcan.info/prestitoumbria.html Prestito umbria] [http://kwyndex.info/text/replicarolex.html Replica rolex watch] [http://kevcan.info/prestitonuoro.html Prestito nuoro] [http://isitale.info/articles/orologioomega.html Orologio omega] [http://kirtose.info/topic/questuratorino.html Questura torino] [http://jisegyn.info/parquetecologico/ Parquet ecologico bamflor] [http://lylovec.info/supercockfucking/ Super cock fucking] [http://laseris.info/scuolait.html Scuola it] [http://jasenti.info/blog/puttanerusse.html Puttane russe] [http://laseris.info/sediagiardino.html Sedia giardino royal garden] [http://meximep.info/tettonenaturali.html Tettone naturali] [http://jisegyn.info/penelopecruz/ Penelope cruz] [http://meximep.info/testimania.html Testimania] [http://meximep.info/timidezza.html Timidezza] [http://natesos.info/tirreniaprenotazioni/ Tirrenia prenotazioni] [http://lerofne.info/societaorganizzazione/ Societa organizzazione congresso] [http://itliks.info/porteasoffietto/ Porte a soffietto] [http://jirvoje.info/pisahotel.html Pisa hotel] [http://kevcan.info/precauzioni.html Precauzioni varicella] [http://mikylir.info/spillaargento.html Spilla argento] [http://melolis.info/sessoincesti/ Sesso incesti free] [http://kirtose.info/topic/racchetta.html Racchetta tennis head] [http://mikylir.info/strasburgo.html Strasburgo hotel] [http://jisegyn.info/pescetropicale/ Pesce tropicale] [http://kirtose.info/topic/r101it.html R101 it] [http://melolis.info/sexivideofree/ Sexi video free] [http://jasenti.info/blog/programmainvio.html Programma invio sms] [http://meximep.info/tettenude.html Tette nude] [http://moratet.info/tattoodraghi.html Tattoo draghi] [http://lylovec.info/tamagotchicom/ Tamagotchi com] [http://melolis.info/sextoon/ Sextoon] [http://lerofne.info/sitoamatoriali/ Sito amatoriali ragazze] [http://melolis.info/sexyamateurlesbian/ Sexy amateur lesbian] [http://joekla.info/blog/rolexwatchstore.html Rolex watch store] [http://melolis.info/sessoconvecchie/ Sesso con vecchie] [http://joekla.info/blog/rompokemonsmeraldo.html Rom pokemon smeraldo] [http://meximep.info/tettelunghe.html Tette lunghe] [http://jisegyn.info/pedanapropriocettive/ Pedana propriocettive] [http://lylovec.info/index1_50.html link] [http://isitale.info/articles/ottenereprestito.html Ottenere prestito online] [http://meximep.info/ternanacalcio.html Ternana calcio] [http://kwyndex.info/text/refinancing.html Refinancing mortgage] [http://jirvoje.info/pokerchiptricks.html Poker chip tricks] [http://melolis.info/sessofree/ Sesso free] [http://jasenti.info/blog/pumascarpa.html Puma scarpa] [http://moratet.info/temigratis.html Temi gratis nokia n73] [http://jisegyn.info/parmalatobbligazioni/ Parmalat obbligazioni] [http://isitale.info/articles/orvietoalbergo.html Orvieto albergo] [http://mikylir.info/ssislazio.html Ssis lazio] [http://lyndjie.info/siemenstelefonino.html Siemens telefonino] [http://melolis.info/sessosadomaso/ Sesso sadomaso] [http://lerofne.info/smegfrigorifero/ Smeg frigorifero] [http://joekla.info/blog/ristorantecinesi.html Ristorante cinesi milano] [http://jasenti.info/blog/prodottiper.html Prodotti per ufficio] [http://natesos.info/transesuali/ Transesuali] [http://meximep.info/testilaurapausini.html Testi laura pausini] [http://jisegyn.info/piedifetish/ Piedi fetish] [http://melolis.info/sessoincestuoso/ Sesso incestuoso] [http://jasenti.info/blog/profumeriatorino.html Profumeria torino] [http://mikylir.info/sslazioit.html Sslazioit] [http://lyndjie.info/sienacosefare.html Siena cose fare] [http://jisegyn.info/pavesecesare/ Pavese cesare] [http://kliorte.info/salaconsilina/ Sala consilina] [http://lerofne.info/sitopandamovies/ Sito pandamovies] [http://meximep.info/testieaccordo.html Testi e accordo ligabue] [http://jisegyn.info/piaggiousato/ Piaggio usato] [http://kirtose.info/topic/ragazzechepisciano.html Ragazze che pisciano gratis] [http://lerofne.info/societaconsulenza/ Societa consulenza iso 9000 modena] [http://jasenti.info/blog/prezzospazio.html Prezzo spazio web] [http://joekla.info/blog/rivenditore.html Rivenditore dominio] [http://kwyndex.info/text/raynair.html Raynair] [http://itliks.info/porteinlaminato/ Porte in laminato] [http://jirvoje.info/piramidi.html Piramidi] [http://mikylir.info/studentessetutte.html Studentesse tutte nude foto gratis] [http://lylovec.info/subacquea/ Subacquea] [http://kevcan.info/prestitocessione.html Prestito cessione quinto stipendio 24 ore] [http://kliorte.info/scarlattina/ Scarlattina] [http://natesos.info/trample/ Trample] [http://itliks.info/pornoesibizionista/ Porno esibizionista] [http://lylovec.info/tardonevecchie/ Tardone vecchie] [http://isitale.info/articles/palmaregpsgsm.html Palmare gps gsm] [http://lyndjie.info/shutupandblow.html Shut up and blow me] [http://isitale.info/articles/orosei.html Orosei] [http://moratet.info/teenfiga.html Teen figa] [http://kwyndex.info/text/richardginori.html Richard ginori] [http://mikylir.info/stampantehplaser.html Stampante hp laser rete] [http://joekla.info/blog/riunionilavoro.html Riunioni lavoro] [http://jirvoje.info/poenostarcinesi.html Poeno star cinesi] [http://jisegyn.info/phototeen/ Photo teen] [http://meximep.info/tettagiganti.html Tetta giganti] [http://joekla.info/blog/rumenetroie.html Rumene troie] [http://joekla.info/blog/rivistapersole.html Rivista per sole donna] [http://meximep.info/tesinaitc.html Tesina itc] [http://natesos.info/traduzionecanzoni/ Traduzione canzoni gratis] [http://kirtose.info/topic/raccontitette.html Racconti tette] [http://lylovec.info/tappetoarazzo/ Tappeto arazzo] [http://meximep.info/testobecause.html Testo because of you kelly clarkson] [http://meximep.info/tesinailsogno.html Tesina il sogno] [http://mikylir.info/streptococco.html Streptococco emolitico di tipo a] [http://lylovec.info/summercummings/ Summer cummings] [http://kirtose.info/topic/raccontocuckold.html Racconto cuckold] [http://kliorte.info/santafoca/ Santa foca] [http://jisegyn.info/phorno/ Phorno] [http://itliks.info/porteinterne/ Porte interne] [http://itliks.info/porteascomparsa/ Porte a scomparsa] [http://lyndjie.info/shemalebrazilian.html Shemale brazilian] [http://lerofne.info/soniaeyesfree/ Sonia eyes free clip] [http://natesos.info/torinohotel/ Torino hotel] [http://isitale.info/articles/ospedaleniguarda.html Ospedale niguarda] [http://laseris.info/selenvideogratis.html Selen video gratis] [http://jisegyn.info/passegginichicco/ Passeggini chicco] [http://lyndjie.info/shittingandpissing.html Shitting and pissing] [http://isitale.info/articles/osakaristorante.html Osaka ristorante] [http://lerofne.info/snalsmatera/ Snals matera] [http://lerofne.info/soniahandjob/ Sonia handjob] [http://meximep.info/timitmms.html Tim it mms] [http://meximep.info/tesinadolore.html Tesina dolore] [http://kevcan.info/prestitomantova.html Prestito mantova] [http://kliorte.info/santinomoda/ Santino moda saronno] [http://jirvoje.info/porchevogliose.html Porche vogliose] [http://meximep.info/testdintelligenza.html Test d intelligenza] [http://joekla.info/blog/rose-rosse.html Rose-rosse com] [http://jirvoje.info/pornaccess.html Pornaccess matura] [http://jirvoje.info/ponza.html Ponza] [http://meximep.info/tettafamose.html Tetta famose] [http://meximep.info/tesinaemigrazione.html Tesina emigrazione] [http://isitale.info/articles/pantelleria.html Pantelleria dammusi] [http://melolis.info/sessantanove/ Sessantanove] [http://kliorte.info/sancandidoalbergo/ San candido albergo] [http://moratet.info/index1_250.html link] [http://itliks.info/porteroma/ Porte roma] [http://lyndjie.info/sexywife.html Sexy wife] [http://meximep.info/testogianniceleste.html Testo gianni celeste] [http://isitale.info/articles/oroscopooracolo.html Oroscopo oracolo] [http://meximep.info/texaslonghorn.html Texas longhorn biggest cock] [http://laseris.info/scuolalingua.html Scuola lingua spagnola milano] [http://lyndjie.info/silverrings.html Silver rings] [http://kliorte.info/salutebenessere/ Salute benessere italia] [http://melolis.info/sessonegri/ Sesso negri] [http://kwyndex.info/text/regionelazio.html Regione lazio it] [http://mikylir.info/storiepornoillustrate.html Storie porno illustrate] [http://lylovec.info/suoneriada/ Suoneria da scaricare] [http://kliorte.info/scarpacalcetto/ Scarpa calcetto nike] [http://moratet.info/teenblowjob.html Teen blowjob] [http://melolis.info/sessoliberogratis/ Sesso libero gratis] [http://kirtose.info/topic/raccontidiscopate.html Racconti di scopate] ===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 07:46, 21 September 2007

Spritz Sex pps Segretaria troia Suoneria x cell gratis Sessualita maschile Tette serena grandi Ruoteclassiche Piscina cardellino milano Tesine futurismo Preteen pics Pugilato Teen nudism Pratica professionale ipsoa Todomondo Pupazzi maria perego Queens of the stone age Pavimento resina Prezzo terme slovenia Outlet toscana europe invest Teletutto bresciasette Ragazze rumene Pronostici tris Sicurezza internet commercio elettronico Regione piemonte it Porno infermiera Socket 478 processore intel Oroscopo di paolo fox Telegramma telefono Terapia osteoporosi Tinkerbell school Quadrifoglio clip art gratis Plexiglas Scaricare video youtube Selen home foto Profumo dolce gabbana Seneweb Tatuaggi sole Spiagge croazia Preventivo prestito provincia pistoia Orologio meccanico Porno sulmona Top escort Tesi macroeconomia Sesso con negri Parmalat Positano hotel Senewebcom Sex in school Punti fisi Tesi laurea scienze comunicazione Portogruaro Tatuaggi con pergamena Polmonite virale Tanga perizomi Porno star repubblica it Tgppornaccesscom Poesia su matrimonio Spiagge gay Solo volo messico Shemal Stampante lexmark Sega circolare Servizio consulenza aziendale Parigi cathedrale notre dama de paris Tettone anteprime trailer Progettazione tensostruttura Porno zoccole Tesina inglese ulisse joyce Oz multisala brescia Rsu sogei it Prestito trapani Tesine razzismo Sigla dei cartoni animati Palma di montechiaro Prestito umbria Replica rolex watch Prestito nuoro Orologio omega Questura torino Parquet ecologico bamflor Super cock fucking Scuola it Puttane russe Sedia giardino royal garden Tettone naturali Penelope cruz Testimania Timidezza Tirrenia prenotazioni Societa organizzazione congresso Porte a soffietto Pisa hotel Precauzioni varicella Spilla argento Sesso incesti free Racchetta tennis head Strasburgo hotel Pesce tropicale R101 it Sexi video free Programma invio sms Tette nude Tattoo draghi Tamagotchi com Sextoon Sito amatoriali ragazze Sexy amateur lesbian Rolex watch store Sesso con vecchie Rom pokemon smeraldo Tette lunghe Pedana propriocettive link Ottenere prestito online Ternana calcio Refinancing mortgage Poker chip tricks Sesso free Puma scarpa Temi gratis nokia n73 Parmalat obbligazioni Orvieto albergo Ssis lazio Siemens telefonino Sesso sadomaso Smeg frigorifero Ristorante cinesi milano Prodotti per ufficio Transesuali Testi laura pausini Piedi fetish Sesso incestuoso Profumeria torino Sslazioit Siena cose fare Pavese cesare Sala consilina Sito pandamovies Testi e accordo ligabue Piaggio usato Ragazze che pisciano gratis Societa consulenza iso 9000 modena Prezzo spazio web Rivenditore dominio Raynair Porte in laminato Piramidi Studentesse tutte nude foto gratis Subacquea Prestito cessione quinto stipendio 24 ore Scarlattina Trample Porno esibizionista Tardone vecchie Palmare gps gsm Shut up and blow me Orosei Teen figa Richard ginori Stampante hp laser rete Riunioni lavoro Poeno star cinesi Photo teen Tetta giganti Rumene troie Rivista per sole donna Tesina itc Traduzione canzoni gratis Racconti tette Tappeto arazzo Testo because of you kelly clarkson Tesina il sogno Streptococco emolitico di tipo a Summer cummings Racconto cuckold Santa foca Phorno Porte interne Porte a scomparsa Shemale brazilian Sonia eyes free clip Torino hotel Ospedale niguarda Selen video gratis Passeggini chicco Shitting and pissing Osaka ristorante Snals matera Sonia handjob Tim it mms Tesina dolore Prestito mantova Santino moda saronno Porche vogliose Test d intelligenza Rose-rosse com Pornaccess matura Ponza Tetta famose Tesina emigrazione Pantelleria dammusi Sessantanove San candido albergo link Porte roma Sexy wife Testo gianni celeste Oroscopo oracolo Texas longhorn biggest cock Scuola lingua spagnola milano Silver rings Salute benessere italia Sesso negri Regione lazio it Storie porno illustrate Suoneria da scaricare Scarpa calcetto nike Teen blowjob Sesso libero gratis Racconti di scopate ===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