PDA

View Full Version : tuncfg spamming my system.log



jubilantjeremy
16th October 2008, 02:42 PM
launchd[1] is spamming my system.log with these 3 messages, every 10 seconds :


16/10/08 12:36:23 PM tuncfgd[10706] tuncfg: already running, use 'killall tuncfg; tuncfg' to restart it
16/10/08 12:36:23 PM com.apple.launchd[1] (tuncfgd[10706]) Exited with exit code: 1
16/10/08 12:36:23 PM com.apple.launchd[1] (tuncfgd) Throttling respawn: Will start in 10 seconds

Arrgh! Google tells me that tuncfg is related to HamachiX, which I installed about a year ago and haven't used since. I have since trashed the app (using appcleaner) and emptied the trash.

If, in terminal, I enter locate tuncfg, it returns :


locate tuncfg
/Applications/HamachiX.app/Contents/Resources/tuncfg
/Applications/HamachiX.app/Contents/Resources/tuncfgd.plist
/System/Library/LaunchDaemons/tuncfgd.plist
/private/var/run/tuncfg.lock
/private/var/run/tuncfg.sock
/usr/sbin/tuncfg


What gives... I trashed the app a day or so ago, maybe the locate database hasn't updated? But if I trashed it, how is the process (or whatever it is) running?

I already checked, and I cannot see the .plist in /System/Library/LaunchDaemons/.

Hope you can help :)

Thanks,
Jeremy

jubilantjeremy
16th October 2008, 03:17 PM
Sorry - did I give the impression I know what I'm doing? I don't..

Trying to kill it :


su killall tuncfg; tuncfg
Password:
su: Sorry
tuncfg: must be run with superuser permissions

chrome
16th October 2008, 03:19 PM
1. wrong password
2. sudo not su
3. both commands need sudo in front of them, using ';' is the same as starting on a new line.

jubilantjeremy
16th October 2008, 07:54 PM
1. wrong password
2. sudo not su
3. both commands need sudo in front of them, using ';' is the same as starting on a new line.

1. Nope
2. Ahh...
3. Gotchya

Thanks Chrome

I killed it, then it just started up again :


Oct 16 17:52:27 lovebook com.apple.launchd[1] (tuncfgd[11957]): Exited with exit code: 1
Oct 16 17:52:27 lovebook com.apple.launchd[1] (tuncfgd): Throttling respawn: Will start in 10 seconds
Oct 16 17:52:34 lovebook sudo[11958]: jeremyhall : TTY=ttys001 ; PWD=/Users/jeremyhall ; USER=root ; COMMAND=/usr/bin/killall tuncfg
Oct 16 17:52:37 lovebook com.apple.launchd[1] (tuncfgd): Throttling respawn: Will start in 10 seconds
Oct 16 17:52:47 lovebook tuncfgd[11962]: tuncfg: already running, use 'killall tuncfg; tuncfg' to restart it

How do I get rid of this thing completely?

jubilantjeremy
17th October 2008, 04:31 PM
http://dl.getdropbox.com/u/201802/Picture%208.png

forgie
17th October 2008, 05:03 PM
Type in:

ls /System/Library/LaunchDaemons/tuncfgd.plist
That will tell you if the file actually exists. If it exists, it'll spit the filename back at you. If it doesn't, you'll get a "No such file or directory" message.

You may have to delete all of those files in order to get rid of it. Whatever "it" is.... :)

Try running 'ls' on a few of those files to check whether or not they actually exist, then report back.

Wally
17th October 2008, 05:04 PM
Backup tuncfg incase things get screwy

cp /sbin/tuncfg /Users/jeremyhall/ (This will copy to your home directory)

Then.

sudo rm /sbin/tuncfg

Hope that works.

Wally

EDIT: Follow Forgies instructions first.

chrome
17th October 2008, 05:33 PM
possibly

sudo launchctl stop tuncfgd
sudo launchctl remove tuncfgd

Something like that. You might need the full name of the service ... com.blah.tuncfgd ... etc.

Google tuncfgd; lots of people with the same problem. Apparently the best solution is to run the HamachiX removal script. Wherever that is.

jubilantjeremy
18th October 2008, 01:22 PM
forgie, wally, chrome, thanks.

I can't find this removal script - only a script to install hamachi 'headless', which it is suggested will stop the launchd messages.

It doesn't seem to be in Launchdaemons anymore :
lovebook:Library jeremyhall$ cd Launchdaemons
lovebook:Launchdaemons jeremyhall$ ls
com.orbicule.theftsensor.plist com.vmware.launchd.vmware.plist

And I removed it from /usr/sbin/ :

cp /usr/sbin/tuncfg /Users/jeremyhall/
lovebook:~ jeremyhall$ sudo rm /usr/sbin/tuncfg
Password:
lovebook:sbin jeremyhall$ ls /usr/sbin/tuncfg
ls: /usr/sbin/tuncfg: No such file or directory


I also followed chrome's instruction :
lovebook:sbin jeremyhall$ sudo launchctl stop tuncfgd
lovebook:sbin jeremyhall$ sudo launchctl remove tuncfgd

And observed this in system.log :

Oct 18 11:12:24 lovebook com.apple.launchd[1] (tuncfgd): Throttling respawn: Will start in 10 seconds
Oct 18 11:12:24 lovebook sudo[1348]: jeremyhall : TTY=ttys000 ; PWD=/usr/sbin ; USER=root ; COMMAND=/bin/launchctl remove tuncfgd
Oct 18 11:13:36 lovebook sudo[1350]: jeremyhall : TTY=ttys000 ; PWD=/usr/sbin ; USER=root ; COMMAND=/usr/bin/killall tuncfg

So I will log in/out - hopefully it is gone..! bastard thing..

(Next up : Oct 16 00:12:56 lovebook Adium[292]: doClip: empty path. - also appearing in system.log whenever I lose my network.)

Cheers again guys
J

jubilantjeremy
19th October 2008, 06:05 PM
Well I'm really fecking pissed off now,

Just came home to find my macbook closed, fans whirring, and temp ablazin', on the sideboard where I had left it asleep and charging last night. Wouldn't wake; Had to reboot.

Anyway this bloody .plist is still trying to initialise.

19/10/08 4:01:28 PM com.apple.launchd[1] (tuncfgd[353]) Exited with exit code: 1
19/10/08 4:01:28 PM com.apple.launchd[1] (tuncfgd) Throttling respawn: Will start in 10 seconds
19/10/08 4:01:38 PM com.apple.launchd[1] (tuncfgd[423]) posix_spawnp("/usr/sbin/tuncfg", ...): No such file or directory


What does Exited with exit code: 1 mean?

I did some more poking and while I can't see it in Finder, Terminal shows the following :

lovebook:~ jeremyhall$ cd /System/Library/LaunchDaemons
lovebook:LaunchDaemons jeremyhall$ ls
bootps.plist
com.apple.AOSHelper.plist
com.apple.ATSServer.plist
com.apple.AppleFileServer.plist
...
telnet.plist
tftp.plist
tuncfgd.plist



Here is the contents of tuncfgd.plist


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple$
<plist version="1.0">
<dict>
<key>Label</key>
<string>tuncfgd</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/tuncfg</string>
</array>
</dict>
</plist>

Can I just delete this .plist now and be done with this??

Thanks,
Jeremy

Linux_insidev2
19th October 2008, 06:16 PM
If you use the launchctl command, append -w after launchctl to write the changes so it doesn't load again on boot...

jubilantjeremy
19th October 2008, 06:29 PM
linux.. that doesn't seem to do the trick :

lovebook:~ jeremyhall$ sudo launchctl stop -w tuncfgd
usage: launchctl stop <job label>


I think it's telling me that the instruction isn't working.

lovebook:~ jeremyhall$ sudo launchctl -w stop tuncfgd
Unknown argument: '-w'

Doesn't work after launchctl either.. man says to use it after the subcommand.

Man also says that these commands are stored in "$HOME/.launchd.conf or /etc/launchd.conf" but I cannot locate either of these files. Using the 'locate' command only yields the two man files.

Am I being really dense here..?
I feel like i've been lobotomised. I don't know anything about BSD or Unix - just want to get rid of this.

J

vecsty
19th October 2008, 07:15 PM
----------------

jubilantjeremy
19th October 2008, 08:37 PM
do you still have the file /System/Library/LaunchDaemons/tuncfgd.plist ?

If you do, remove it.

Never understood why alleged programers put files in that domain.

OK, just removed it via the Finder and emptied the trash.
Will log out/in and report results..

Jeremy

vecsty
19th October 2008, 09:52 PM
----------------

jubilantjeremy
20th October 2008, 01:31 AM
best to restart.

OK, will do, I logged back in again but am still getting the same messages.

revax
27th October 2008, 11:50 AM
From the help menu choose System Support-> Uninstall Systemcomponents

Your welcome :)