Hi,
I am writing a simple lookup script in python and i use spawn to make
it talk to postfix.
# /etc/postfix/master.cf
127.0.0.1:6543 inet n n n - 0 spawn
user=nobody argv=/opt/scripts/lookupserver
# connecting as tcp:localhost:6543
and it works as expected. but i have a couple of questions around it.
* what is the use of transport_time_limit? postfix docs say that it is the
amount of time the command is allowed to run before it is terminated. The
transport_time_limit is set to 10 seconds for testing. but the program is
not terminated after 10 seconds but a message is logged by spawn that
command time limit exceeded. Is the process expected to exit by itself
after sometime?
* what happens when we stop postfix. Will spawn be notifying the children
with some signals? What all signals is the script expected to handle?
Regards,
Clement