Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


The documentatation for the Cargo Daemon includes:


  • To start a container, fill in the form and press Start:

    Note: The start button is actually equivalent to a restart in CARGO's terms; in the case a container with the same handle id already exists then it will be stopped first before your container is started. This also implies that in the case the new container fails to start, the old one will not be restarted.

  • To stop, restart, delete or view logs of a container, use the actions on the containers list:
  • The Cargo Daemon keeps a persistent record on disk of all the containers that have been submitted. Containers that have been submitted will stay in the list, even when they are stopped. This allows you to manually restart them, or view the logs even after the container is stopped.
  • If you want the container to be removed from the list, simply press the delete button.
  • Containers can also be submitted with the autostart property, this will automatically restart the container if the daemon notices it is stopped.


Getting started with the Java API / ANT tasks / Maven2/Maven3 plugin

As stated before, the Cargo Daemon is also available programmatically:

  • The details of the Java API can be seen on the Javadoc for
  • To use the Daemon via ANT tasks, simply add the <daemon> tag in the task and use the daemon-start or daemon-stop tasks:

    Code Block
    <cargo containerId="tomcat6x" action="daemon-start">
      <configuration home="${catalina.base}">
        <property name="cargo.daemon.handleid" value="test1"/>
        <property name="cargo.daemon.url" value="http://localhost:18000/"/>
        <property name="cargo.daemon.username" value="myuser"/>
        <property name="cargo.daemon.password" value="secret"/>