Handle SIGINT as we do with SIGTERM
[exim.git] / test / scripts / 0000-Basic / 0621
index 53512ade41a7ebec2057aeec9c60ca78c2900802..589c0ac4e3c5bb529d43c2c312dc442407f124f2 100644 (file)
@@ -1,19 +1,12 @@
-# $queue_size
-#
-exim -bd -DSERVER=server -oX PORT_D
+# daemon: re-exec on SIGHUP
+exim -DSERVER=server -bd -oX PORT_D -oP DIR/spool/exim-daemon.pid
 ****
-#
-exim a@test.ex
+millisleep 500
+sudo perl
+open(PID, "DIR/spool/exim-daemon.pid");
+chomp($daemon_pid = <PID>);
+close(PID);
+system("kill -HUP $daemon_pid");
 ****
-exim a@test.ex
-****
-exim a@test.ex
-Subject: msg 3
-****
-sleep 4
-exim a@test.ex
-Subject: msg 4
-****
-#
+sleep 1
 killdaemon
-no_msglog_check