| Author |
Problem executing a command after startup(OSX 10.7)
|
Vadim Korotchenko
Greenhorn
Joined: Feb 29, 2012
Posts: 1
|
|
Hi, I am having some issues with tomcat on startup. In my program tomcat executes an Imagemagick command but it fails to do so right after startup,but if I either start tomcat manually or restart tomcat using(sudo shutdown.sh and startup.sh) everything works fine. I suspect it has something to do with the plist, but I hit a wall. This is what I have so far:
- my plist calls a script which is a launchd wrapper:
- the script starts tomcat
The only other thing I have found is that when I run "sudo ./launchd_wrapper.sh" the console displays:
sudo: <<USERNAME>> : TTY=ttys002 ; PWD=/Library/Tomcat/apache-tomcat-6.0.29/bin ; USER=root ; COMMAND=/Library/Tomcat/Home/bin/startup.sh
whereas if I run "sudo launchctl load -w /Library/LaunchDaemons/myplist.plist "
sudo: <<USERNAME>> : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/Library/Tomcat/Home/bin/startup.sh
Any thoughts or ideas will be greatly appreceiated
Thank you
-Vadim
|
 |
 |
|
|
subject: Problem executing a command after startup(OSX 10.7)
|
|
|