aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Thibodeau <kyron@neuralbs.com>2008-08-22 00:14:48 -0400
committerEric Thibodeau <kyron@neuralbs.com>2008-08-22 00:14:48 -0400
commit54612177488e0edaff14e4f1bf394d9bbf2935dd (patch)
treeba334e49f406ee2a75f657ff973af0311b0a4d3c
parentFinally get quoting right for generating /etc/conf.d/net (diff)
downloadclustering-livecd-54612177488e0edaff14e4f1bf394d9bbf2935dd.tar.gz
clustering-livecd-54612177488e0edaff14e4f1bf394d9bbf2935dd.tar.bz2
clustering-livecd-54612177488e0edaff14e4f1bf394d9bbf2935dd.zip
Trigger callbacks no the existance of DNSMASQ_USER_CLASS0 rather than $#
-rwxr-xr-xoverlay/sys-cluster/beowulf-head/files/node-manager6
1 files changed, 3 insertions, 3 deletions
diff --git a/overlay/sys-cluster/beowulf-head/files/node-manager b/overlay/sys-cluster/beowulf-head/files/node-manager
index e77b764..1073946 100755
--- a/overlay/sys-cluster/beowulf-head/files/node-manager
+++ b/overlay/sys-cluster/beowulf-head/files/node-manager
@@ -63,15 +63,15 @@ HNAME=$4
if [[ $COMMAND == "del" ]]; then
run_modules $@
else
- # we background this since it performs a ping with a 1 second timeout
- # on a 256 node system, those seconds add up...
- if [[ $# -lt 5 ]]; then
+ if [[ -z $DNSMASQ_USER_CLASS0 ]]; then
# We ignore calls made with only 4 args as we're missing the processor count.
# This can be caused by dnsmasq reloading or dnsmasq not setting DNSMASQ_USER_CLASS0
# as the incoming request is either only a "renewal/rebind" request which doesnt trigger
# DHCPDISCOVER
exit 0
elif [[ $COMMAND == "old" ]]; then
+ # we background this since it performs a ping with a 1 second timeout
+ # on a 256 node system, those seconds add up...
old_node $@ &
else # COMMAND == add
run_modules $@