
h2. Starting Petals ESB at user level
A Petals ESB container configured at user level (its full configuration is located under the user's home directory) can be *only* started using a manual startup:
{code}
petals-esb -u <container-configuration>
{code}
where {{<container-configuration>}} is the URL of the container configuration (ie, URL locating the file {{server.properties}})
{quote}For example:
{code}
petals-esb -u file:///home/cdeneux/my-petals-esb-containers/demo1/server.properties
{code}
{quote}
{note}
When manually starting a Petals ESB container, it will be automatically stopped when closing your shell.
{note}
h1. Stopping Petals ESB
The process stopping a Petals ESB container reads the contents of its topology file to get the JMX credentials required to connect to the container and invoke a shutdown. The security to block a shutdown is based on filesystem ACLs of the configuration files of the container. So, don't forget to set the right ACL on these files.
{quote}
Example: "{{me:my-group rw-r-----}}" for your container to authorize you ({{me}}) and all member of the group {{my-group}}) to shutdown the container.
{quote}
h2. Stopping Petals ESB at system level
h3. Automatic stop
To stop the Petals containers started as system services uses the following command on a Ubuntu box, for example:
{code}
cdeneux@sph-latitude-D630:~$ sudo service petals-esb stop
{code}
{note}
The automatic stop stops all Petals ESB containers declared in the directory /etc/petals-esb/container-enable. So if you have removed a Petals ESB container in this directory since the last automatic startup, it will not be stopped. Use a manual stop to stop it.
{note}
h3. Manual stop
h4. Manual stop of a Petals ESB container automatically started
To stop a Petals ESB container started as system service use the following command:
{code}
sudo -u petals petals-esb -u <container-configuration> stop
{code}
where {{<container-configuration>}} is the URL of the container configuration (ie, URL locating the file {{server.properties}})
{quote}For example, to stop the default sample container
{code}
sudo -u petals petals-esb -u file:///etc/petals-esb/container-available/default/server.properties stop
{code}
{quote}
h4. Manual stop of a Petals ESB container manually started
If you have manually started a Petals ESB container at system level, just kill it with a Ctrl-C on its console, or use the following command from another shell:
{code}
sudo -u petals petals-esb -u <container-configuration> stop
{code}
where {{<container-configuration>}} is the URL of the container configuration (ie, URL locating the file {{server.properties}})
{quote}For example, to stop the default sample container
{code}
sudo -u petals petals-esb -u file:///etc/petals-esb/container-available/default/server.properties stop
{code}
{quote}
h2. Stopping Petals ESB at user level
To stop your Petals ESB container, just kill it with a Ctrl-C on its console, or use the following command from another shell:
{code}
petals-esb -u <container-configuration> stop
{code}
where {{<container-configuration>}} is the URL of the container configuration (ie, URL locating the file {{server.properties}})
{quote}For example
{code}
petals-esb -u file:///home/cdeneux/my-petals-esb-containers/demo1/server.properties stop
{code}
{quote}
h1. Reference guide of script '{{petals-esb}}'
{info}This reference guide is also available as "man" page installed with the Debian package '{{petals-esb}}'.{info}
h2. Synopsis
{code}
petals-esb -u container-cfg-url [stop] [-e]
petals-esb -h
petals-esb -V
{code}
h2. Description
*petals-esb* is used to start and stop manually a Petals ESB container.
h2. Options
|| Short option || Long option || Description ||
| {{-e}} | {{--error}} | Print the extended error message (stack-trace). |
| {{-h}} | {{--help}} | Print usage. |
| {{-u container-cfg-url}} | {{--url container-cfg-url}} | The URL of the Petals container configuration to start or stop. |
| {{-V}} |{{--version}} | Print the version number and exit. |
| {{stop}} | N/A | Stop the local Petals ESB container. |