Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit d03dfbd

Browse files
authored
Exiting container when Standalone or Node exits, even with error exit status (SeleniumHQ#1704)
1 parent d9fdeb3 commit d03dfbd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NodeBase/selenium.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ stderr_capture_maxbytes=50MB
5555

5656
[program:selenium-node]
5757
priority=15
58-
command=bash -c "/opt/bin/start-selenium-node.sh && kill -s SIGINT `cat /var/run/supervisor/supervisord.pid`"
58+
command=bash -c "/opt/bin/start-selenium-node.sh; EXIT_CODE=$?; kill -s SIGINT `cat /var/run/supervisor/supervisord.pid`; exit $EXIT_CODE"
5959
stopasgroup = true
6060
autostart=true
6161
autorestart=false

Standalone/selenium.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ stderr_capture_maxbytes=50MB
6161

6262
[program:selenium-standalone]
6363
priority=15
64-
command=bash -c "/opt/bin/start-selenium-standalone.sh && kill -s SIGINT `cat /var/run/supervisor/supervisord.pid`"
64+
command=bash -c "/opt/bin/start-selenium-standalone.sh; EXIT_CODE=$?; kill -s SIGINT `cat /var/run/supervisor/supervisord.pid`; exit $EXIT_CODE"
6565
stopasgroup = true
6666
autostart=true
6767
autorestart=false

0 commit comments

Comments
 (0)