Skip to content

Commit

Permalink
Use exec on scrutiny-collector cron to ensure signal handling
Browse files Browse the repository at this point in the history
This way SIGTERM gets propagated and the container terminates
gracefully.
  • Loading branch information
joserebelo committed Mar 9, 2024
1 parent 5e33c33 commit ca7bd2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/entrypoint-collector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ fi

# now that we have the env start cron in the foreground
echo "starting cron"
su -c "cron -f -L 15" root
exec su -c "cron -f -L 15" root

0 comments on commit ca7bd2c

Please sign in to comment.