
[Postfix] Use events to kill supervisord when main proc dies [SOGo] Use events to kill supervisord when main proc dies
9 lines
152 B
Bash
Executable File
9 lines
152 B
Bash
Executable File
#!/bin/bash
|
|
|
|
printf "READY\n";
|
|
|
|
while read line; do
|
|
echo "Processing Event: $line" >&2;
|
|
kill -3 $(cat "/var/run/supervisord.pid")
|
|
done < /dev/stdin
|