Difference between revisions of "Watchdog"
(→How to disable Watchdog) |
(→How to disable Watchdog) |
||
Line 9: | Line 9: | ||
(...) | (...) | ||
BRSettingsHelper tellWatchdogWeAreUpAndRunning | BRSettingsHelper tellWatchdogWeAreUpAndRunning | ||
+ | |||
+ | This function seems to reset the boot count but does not prevent the machine from rebooting.<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 "/sbin/shutdown -r now" | SettingsHelper has a reference to "/sbin/shutdown -r now" |
Revision as of 17:23, 24 March 2007
What is Watchdog
Watchdog reboots the Apple TV it if the GUI isn't running.
How to disable Watchdog
Apparently BackRow.framework tells Watchdog that "we are up and running":
strings /System/Library/PrivateFrameworks/BackRow.framework/Versions/A/BackRow (...) BRSettingsHelper tellWatchdogWeAreUpAndRunning
This function seems to reset the boot count but does not prevent the machine from rebooting.
There is also the key:
_kRUIAutoRestartIntervalKey
which is probably used in one of:
-[RUIPreferences boolForKey:]
-[RUIPreferences boolForKey:withValueForMissingPrefs:]
-[RUIPreferences canSetPreferencesForKey:]
-[RUIPreferences descriptionForKey:]
-[RUIPreferences floatForKey:]
-[RUIPreferences integerForKey:]
-[RUIPreferences objectForKey:]
-[RUIPreferences setBool:forKey:]
-[RUIPreferences setFloat:forKey:]
-[RUIPreferences setInteger:forKey:]
-[RUIPreferences setObject:forKey:]
-[RUIPreferences stringForKey:]
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 "/sbin/shutdown -r now"
Symlinking /sbin/shutdown to /usr/bin/true makes the shutdown command do nothing
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 launchd.