Commit 9b4a2c20 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Do not send email when dhcpd is killed with TERM; controlled shutdown.

Just restart it.
parent 263e2cb3
#!/usr/bin/perl -w #!/usr/bin/perl -w
# #
# EMULAB-COPYRIGHT # EMULAB-COPYRIGHT
# Copyright (c) 2004 University of Utah and the Flux Group. # Copyright (c) 2004, 2005 University of Utah and the Flux Group.
# All rights reserved. # All rights reserved.
# #
use English; use English;
...@@ -98,11 +98,13 @@ while (1) { ...@@ -98,11 +98,13 @@ while (1) {
" Could not start $DHCPD! Might be a config file error.\n"); " Could not start $DHCPD! Might be a config file error.\n");
} }
# #
# Anytime it exits, send email. # Anytime it exits, send email (unless TERM).
# #
SENDMAIL($TBOPS, "DHCPD died", if ($? != 15) {
"$DHCPD died with $?; restarting it.", SENDMAIL($TBOPS, "DHCPD died",
$TBOPS); "$DHCPD died with $?; restarting it.",
$TBOPS);
}
sleep(1); sleep(1);
} }
exit(0); exit(0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment