Hello,
Is there a way for me to launch my Apache Tomcat server automatically
at each boot?
Right now I have to launch Terminal.app and then type "/usr/local/bin/
start_tomcat" (or paste the stuff).
Result ok at http://192/168/0/1:8080 .
I tried to put the the following code - the file name is tomcat.plist
- in the "/Library/LaunchDaemons/" root folder, but after reboot,
nothing in browser at the above address.
*** no success ***
beg code ___
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>tomcat.plist</key>
<string>apache-tomcat-5.5.20</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/start_tomcat</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>OnDemand</key>
<true/>
</dict>
</plist>
end code ___
My start_tomcat contain the following code:
beg code ___
#!/bin/sh
export CATALINA_HOME=/usr/local/apache-tomcat-5.5.20
export JAVA_HOME=/usr
$CATALINA_HOME/bin/startup.sh
end code ___
Is there someting wrong with my code(s)?
Wrong approach?
TIA
MacBookPro: MacOSX 10.4.9