3

I’m on a Mac running OS X 10.6.x and I’m seeing this launchd error message repeated constantly in Console.app:

How can I stop this error message?

3/3/12 3:35:03.002 PM com.apple.launchd.peruser.503: (com.hp.help.tocgenerator) Throttling respawn: Will start in 10 seconds

NSGod
  • 1,828
Lars
  • 77

1 Answers1

5

It looks like it is being produced by some component of the HP software for your printer/scanner/multi-function device. (All launchd jobs are identified by a label, which is generally a reverse-DNS formatted string of the developer (see CFBundleIdentifier for more info). In this case, it's hp.com).

[UPDATED]: Okay, after a google search of that bundle identifier, I came across this PhotoSmart C4280 repeating error messages in system.log thread in HP's forums.

Basically, the reason for the issue is whoever wrote the HP software not really understanding how to implement a launchd LaunchAgent properly.

I wrote an AppleScript script to help automate the process of unloading the old launchd job, updating the plist file, and loading the new job:

HP com.hp.help.tocgenerator Helper.app (.zip file, ~29 KB)

Here's the code if you're interested:

if existsFile(":Library:LaunchAgents:com.hp.help.tocgenerator.plist") then
    set plistFileContentsString to (do shell script "/bin/cat /Library/LaunchAgents/com.hp.help.tocgenerator.plist")
    if (plistFileContentsString contains "LaunchOnlyOnce") then
        display alert "It looks like your \"com.hp.help.tocgenerator.plist\"
              has already been helped." buttons "Quit" default button "Quit"
        quit
    else
        set ourPlistPath to POSIX path of (path to resource "com.hp.help.tocgenerator.plist")
        do shell script "/bin/launchctl unload /Library/LaunchAgents/com.hp.help.tocgenerator.plist;
 /bin/rm -f /Library/LaunchAgents/com.hp.help.tocgenerator.plist;
 /usr/bin/ditto --noqtn " & 
 quoted form of ourPlistPath &
   " /Library/LaunchAgents/com.hp.help.tocgenerator.plist;
 /usr/sbin/chown 0:0 /Library/LaunchAgents/com.hp.help.tocgenerator.plist;
 /bin/launchctl load /Library/LaunchAgents/com.hp.help.tocgenerator.plist"
 with administrator privileges
    end if
else
    display alert "Sorry, you don't appear to have the applicable
      HP software installed." buttons "Quit" default button "Quit"
    quit
end if

You should be able to run that AppleScript to alleviate the issue.

NSGod
  • 1,828