Starting and Stopping the Bridge on Linux
Depending on how you have installed the Bridge - Linux or Docker - you can start/stop the Bridge using the e2e_console script or Docker commands.
e2e_console Shell Script for Linux
On Linux systems, folder /etc/init.d/ contains a shell script e2e_console that enables you to start and stop the E2E Console daemon, and to check its status. You need to login to the system as root in order to run the script.
Open a shell on the Linux system and enter the following command :
/etc/init.d/e2e_console
The system will display the usage of the script.
[root@system]# /etc/init.de/e2econsole
Usage /etc/init.de/e2e_console (start|stop|restart|status|list) [HOSTNAME]
Parameters
Parameter | Description | Example | Example Output |
---|---|---|---|
start | Start the Bridge specified with HOSTNAME , or start all Bridges. |
|
|
stop | Stop the Bridge specified with For more information on the implications of stopping the Console service, refer to Stopping the Bridge with e2e_console stop below. |
|
|
restart | Restart the Bridge specified with |
|
|
status | Display the status of the specified Bridge or of all Bridges running on the system. |
| Status of Bridge e2ebridge.e2e.ch: running Status of Bridge e2ebridge2.e2e.ch: running Status of Bridge e2ebridge3.e2e.ch: running |
list | Lists hostname and Bridge home directory of all Bridges running on the system. |
| HOSTNAME CONSOLE_HOME
e2ebridge.e2e.ch /opt/docu/e2ebridge/e2e_bridge_prog
e2ebridge2.e2e.ch /opt/docu/e2ebridge2/e2e_bridge_prog
e2ebridge3.e2e.ch /opt/docu/e2ebridge3/e2e_bridge_prog |
Stopping the Bridge with e2e_console stop
It is recommended to stop all running services before running e2e_console stop
.
/etc/init.de/e2e_console stop
stops the Bridge Console service. The following tasks will be performed:
- If there are still services running on that Bridge, the Bridge will broadcast a shutdown signal to these services, and the services will switch to status shutdown.
- The script will wait 10 seconds for the services to be all stopped. If not all services could be stopped during this period of time, the Bridge will kill the Console daemon.
- Nevertheless, the service shutdown will proceed until all services are stopped.
- Before restarting/updating the Bridge, make sure that all services are stopped - or stick to the tip above.
Starting/Stopping the Bridge with Docker
If you installed the Bridge with Docker, you need to use Docker commands to start or stop the Bridge, resp. the container the Bridge is running in.
Docker provides the following commands for starting and stopping Docker containers:
Command | Effect | Remark |
---|---|---|
docker-compose up | Start Docker containers specified in docker-compose.yml and apply configuration changes.
| Use this command to start a container and and apply changes to the configuration. |
docker-compose start | Start Docker containers with old configuration. Do not apply configuration changes. | Use these two commands to start and stop containers as they are. No changes are applied. |
docker-compose stop | Stop Docker container. | |
docker-compose down | Stop Docker container and drop it. | Use this command to stop a container and remove it. |