summaryrefslogtreecommitdiff
path: root/test/scripts/0000-Basic
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2019-11-09 16:04:14 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2019-11-09 21:54:59 +0000
commit01446a56c76aa5ac3213a86f8992a2371a8301f3 (patch)
tree61ec724046652333ab933e5991cb6fcb2336f679 /test/scripts/0000-Basic
parent580f325235cd1b9713bfa436719b7ca026fe9a16 (diff)
Remove the daemon pid file when exit is due to SIGTERM. Bug 340
Diffstat (limited to 'test/scripts/0000-Basic')
-rw-r--r--test/scripts/0000-Basic/043813
1 files changed, 13 insertions, 0 deletions
diff --git a/test/scripts/0000-Basic/0438 b/test/scripts/0000-Basic/0438
index 099efba0d..a8287cf9f 100644
--- a/test/scripts/0000-Basic/0438
+++ b/test/scripts/0000-Basic/0438
@@ -8,3 +8,16 @@ killdaemon
exim -d -DSERVER=server -bd -oX PORT_D -oP DIR/spool/exim-daemon.anotherpid
****
killdaemon
+#
+# Check for a SIGTERM daemon kill removing the pid file
+exim -d -DSERVER=server -bd -oX PORT_D -oP DIR/spool/mypidfile
+****
+sleep 1
+ls DIR/spool
+sudo perl
+open(IN, "<", "DIR/spool/mypidfile");
+while (<IN>) { kill "TERM", $_; }
+****
+sleep 1
+ls DIR/spool
+#