Skip to content

Commit

Permalink
fix: use exec to properly handle signals for graceful shutdown
Browse files Browse the repository at this point in the history
Use `exec` to execute RabbitMQ's server, so that the server process can
receive signals such as `SIGTERM`.

Closes reanahub/reana-job-controller#347
  • Loading branch information
mdonadoni committed Dec 19, 2023
1 parent 80ff852 commit 16fb408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ EOF
chown rabbitmq:rabbitmq /var/lib/rabbitmq/mnesia
# Limit maximum number of open file descriptors to avoid high memory usage
ulimit -n 1048576
rabbitmq-server
exec rabbitmq-server

0 comments on commit 16fb408

Please sign in to comment.