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