From 01446a56c76aa5ac3213a86f8992a2371a8301f3 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sat, 9 Nov 2019 16:04:14 +0000 Subject: Remove the daemon pid file when exit is due to SIGTERM. Bug 340 --- test/scripts/0000-Basic/0438 | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/scripts/0000-Basic') 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 () { kill "TERM", $_; } +**** +sleep 1 +ls DIR/spool +# -- cgit v1.2.3