Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Re: 10.7: Re-enable syslogd for incoming connections' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Re: 10.7: Re-enable syslogd for incoming connections
Authored by: Uncle Asad on Aug 03, '11 02:43:25PM

Does 'sudo defaults write com.apple.syslogd NetworkListener -dict key1 value1 key2 value2' not work? That would save you two trips through plutil…



[ Reply to This | # ]
Re: 10.7: Re-enable syslogd for incoming connections
Authored by: jaydisc on Aug 03, '11 04:44:51PM

Close. If you put the full path it works. Without the full path, it looks in the user's own preferences folder. So, the command would be:

sudo defaults write /System/Library/LaunchDaemons/com.apple.syslogd NetworkListener -dict SockServiceName 'syslog' SockType 'dgram'

And of course you still have to unload/load



[ Reply to This | # ]
Re: 10.7: Re-enable syslogd for incoming connections
Authored by: dvessel on Aug 08, '11 09:36:48AM

The above comments should be removed. I tried taking this shortcut but it completely destroyed the file. Luckily I had a back-up.

Even if it did add the new entries it wouldn't have worked. It must go under 'Sockets'. Same mistake as the posted hint.

Thanks @Frankus for the correction in the post below.



[ Reply to This | # ]
Re: 10.7: Re-enable syslogd for incoming connections
Authored by: jaydisc on Aug 08, '11 08:34:35PM

The comment was only meant to illustrate how one could use the defaults command to modify a launchd.plist. Unfortunately, there is little I can do about the original hint's accuracy. I lack the power to edit or delete it regardless.

How did it hose your file? Can you explain?



[ Reply to This | # ]
Re: 10.7: Re-enable syslogd for incoming connections
Authored by: dvessel on Aug 08, '11 10:52:07PM

It wiped the file clean but the weird thing is that I just tested the `defaults` command again on a copy of the file and it worked. It even fell within the 'Sockets' dict group so I have no idea. Something else must have been at play.

Always have a back-up.



[ Reply to This | # ]