summaryrefslogtreecommitdiff
path: root/test/scripts/0000-Basic/0438
blob: 28795d83a90d73a33f4baa747b0ad46e5cbe4535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -oP to override pid file
need_ipv4
#
exim -d -DSERVER=server -bd -oX PORT_D
****
killdaemon
# PID file must be DIR/spool/exim-daemon.* in order for "killdaemon" to work
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
sudo perl
system "ls DIR/spool | grep pid";
print "\n";
open(IN, "<", "DIR/spool/mypidfile");
while (<IN>) { kill "TERM", $_; }
****
sleep 1
ls DIR/spool
#