mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-10 16:34:42 +08:00
Fix stuck kubernetes pod shutdown
This commit is contained in:
parent
33c70f080d
commit
ae96fdc9f4
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ spec:
|
|||
command:
|
||||
- bash
|
||||
- -c
|
||||
- touch /tmp/container_is_terminating && while ! [[ "`mailq`" == *empty* ]]; do echo "Flushing queue..." && postfix flush; sleep 1; done
|
||||
- touch /tmp/container_is_terminating && while ! [[ "`mailq`" == *empty* ]]; do echo "Flushing queue..." && postfix flush; sleep 1; done; killall5 -15 supervisord
|
||||
{{- if .Values.lifecycle.postStart }}
|
||||
postStart: {{- toYaml .Values.lifecycle.postStart | nindent 14 }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Add table
Reference in a new issue