Remove the daemon pid file when exit is due to SIGTERM. Bug 340
[exim.git] / test / scripts / 0000-Basic / 0438
1 # -oP to override pid file
2 need_ipv4
3 #
4 exim -d -DSERVER=server -bd -oX PORT_D
5 ****
6 killdaemon
7 # PID file must be DIR/spool/exim-daemon.* in order for "killdaemon" to work
8 exim -d -DSERVER=server -bd -oX PORT_D -oP DIR/spool/exim-daemon.anotherpid
9 ****
10 killdaemon
11 #
12 # Check for a SIGTERM daemon kill removing the pid file
13 exim -d -DSERVER=server -bd -oX PORT_D -oP DIR/spool/mypidfile
14 ****
15 sleep 1
16 ls DIR/spool
17 sudo perl
18 open(IN, "<", "DIR/spool/mypidfile");
19 while (<IN>) { kill "TERM", $_; }
20 ****
21 sleep 1
22 ls DIR/spool
23 #