Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem executing a command after startup(OSX 10.7)

 
Vadim Korotchenko
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic