# -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 ls DIR/spool sudo perl open(IN, "<", "DIR/spool/mypidfile"); while () { kill "TERM", $_; } **** sleep 1 ls DIR/spool #