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

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

Just restart it.
parent 263e2cb3
#!/usr/bin/perl -w
#
# 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.
#
use English;
......@@ -98,11 +98,13 @@ while (1) {
" 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",
"$DHCPD died with $?; restarting it.",
$TBOPS);
if ($? != 15) {
SENDMAIL($TBOPS, "DHCPD died",
"$DHCPD died with $?; restarting it.",
$TBOPS);
}
sleep(1);
}
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