How do I set startup items?

MidnightJava

Registered
I'd like to run a script that starts up Tomcat web server every time I start the Mac. I see the /Library/Startup Items folder, but it doesn't seem that I can just drop a script file in there. I tried adding the script file as a startup item for an admin user, in the Preferences Panel, but that didn't work.

Then I put a command to run the startup script in .bash_login in an admin user's home directory. That works to some extent. The problem is that I need it to run as root (to bind the server to a low port), and I don't want the startup item to apply to only one user?

What's the best way to ensure that the Tomcat startup script is executed by a process with root priv every time the Mac starts up?
 
Back
Top