Some Basic launchd questions/Apache log rotation
Gentleones,
I've found the [url=http://developer.apple.com/macosx/launchd.html]article at Apple[/url] which describes how launchd works, and it does a pretty good job. Since, however, I've never created a launchd job, I've got some basic questions which were not answered by this article.
First, if I'm just in need of running a basic shell script, where's the best place to put that shell script? Is there a preferred directory for that type of thing, especially considering it's a system-wide, needs-to-run-even-when-no-users-are-logged-in script?
Second, my plist should go into /Library/LaunchDaemons, right?
By way of background, I find the log rotation scheme offered by Apache/Apache2 to be annoying, so I'm working on making a script that rotates the httpd logs nicely in the same way that all other logs are rotated with the added catch that I have to update AWStats before rotating logs on through. If anybody has done this kind of thing before, I'd love to hear of it.
Thanks,
Bill