diff options
author | Vitaly Takmazov <vitalyster@gmail.com> | 2020-07-09 10:27:33 +0300 |
---|---|---|
committer | Vitaly Takmazov <vitalyster@gmail.com> | 2020-07-09 10:27:33 +0300 |
commit | df84ed851d582e8fff8dc95604aa747a045b15c8 (patch) | |
tree | e696b8e53ca04be74354a82681953e4c5bcab93c /packaging | |
parent | a7100cd49db300b1db9507b1ef28fabbf971f11e (diff) |
Docker image entrypoint improvements
* start spectrum2_manager server
* exit on errors
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/docker/run.sh | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/packaging/docker/run.sh b/packaging/docker/run.sh index 17198c3a..3f7b62ea 100755 --- a/packaging/docker/run.sh +++ b/packaging/docker/run.sh @@ -1,11 +1,8 @@ #!/bin/bash -while : -do - echo "Trying to start Spectrum 2 instances." - echo "You should mount the directory with configuration files to /etc/spectrum2/transports/." - echo "Check the http://spectrum.im/documentation for more information." - spectrum2_manager start - tail -f /var/log/spectrum2/*/* 2>/dev/null - sleep 2 -done +echo "Trying to start Spectrum 2 instances." +echo "You should mount the directory with configuration files to /etc/spectrum2/transports/." +echo "Check the http://spectrum.im/documentation for more information." +spectrum2_manager start +spectrum2_manager server & +tail -f /var/log/spectrum2/*/* 2>/dev/null |