[Dovecot] Use events to kill supervisord when main proc dies
[Postfix] Use events to kill supervisord when main proc dies [SOGo] Use events to kill supervisord when main proc dies
This commit is contained in:
8
data/Dockerfiles/dovecot/stop-supervisor.sh
Executable file
8
data/Dockerfiles/dovecot/stop-supervisor.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
printf "READY\n";
|
||||
|
||||
while read line; do
|
||||
echo "Processing Event: $line" >&2;
|
||||
kill -3 $(cat "/var/run/supervisord.pid")
|
||||
done < /dev/stdin
|
Reference in New Issue
Block a user