Need a way to automate restaring syslogd service

Hey guys, I am a bit stumped on how I can automate restarting the syslogd service on different version of OS X server. I am running 10.3 server and 10.4 server and my issues is that for some reason it doesn't write to its own log file or write to the syslog server. All of the servers have this issue and the only way to get it to function properly is to restart the service. Sure, I can go into each server and restart them all one by one but that is a pain in the but.

For that matter when I do restart it by hand killall -HUP syslogd does not work, I actually have to look up the PID and kill -9 the ID and then restart it by executing /usr/sbin/syslogd

I looked online and saw that I could use “sudo launchctl stop com.apple.syslogd; sudo launchctl start com.apple.syslogd“ to launch things properly but when I tried this I got the following error:
enterprise61:/var/log root# sudo launchctl stop com.apple.syslogd
sudo: launchctl: command not found

Does anyone have a way that they know of to help me get around this so I can run a script via cron or some other automated fashion?

Thanks

Macbook, Mac OS X (10.5.4), 2GB RAM

Posted on Aug 11, 2008 10:51 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Need a way to automate restaring syslogd service

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.