Menu

start/stop java app from antinstaller

Help
Kurt Stam
2010-09-29
2013-04-22
  • Kurt Stam

    Kurt Stam - 2010-09-29

    Hi guys,

    I have an ant task that executes a start/stop script on linux (to start and start the appserver):

    <exec executable="sudo" os="Linux" dir="." logerror="true" >
        <arg value="/etc/rc.d/init.d/jboss"/>
          <arg value="start"/>
    </exec>
    

    When executed straight from ant this works fine, however when executed from antinstaller
    it echo's all the same printout when executing the script, but the appserver does not actually
    get started.

    Is there an issue with spawning a new JVM? Am I missing something?

    Any help would be greatly appreciated.

    Thx,

    -Kurt

     
  • Mark Wilson

    Mark Wilson - 2010-09-30

    Hi Kurt,
    Is it possible that sudo is not in the PATH at the point you do your exec?

    Cheers,
    Mark

     

Log in to post a comment.

MongoDB Logo MongoDB