diff --git a/xCAT-server-2.0/lib/xcat/plugins/dhcp.pm b/xCAT-server-2.0/lib/xcat/plugins/dhcp.pm index 6fabfd23c..8cd54fb9b 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/dhcp.pm @@ -216,7 +216,7 @@ sub preprocess_request { if ($ntab) { foreach (@{$ntab->getAllEntries()}) { if ($_->{dynamicrange} and not $_->{dhcpserver}) { - $callback->({error=>["In a hierachy, network entries with a dynamic range must be explicit in the dhcpserver field"],errorcode=>[1]}); + $callback->({error=>["Hierarchy requested, therefore networks.dhcpserver must be set for net=".$_->{net}.""],errorcode=>[1]}); return []; } } diff --git a/xCAT-server-2.0/sbin/xcatd b/xCAT-server-2.0/sbin/xcatd index 40e2bb5aa..7869dcca4 100755 --- a/xCAT-server-2.0/sbin/xcatd +++ b/xCAT-server-2.0/sbin/xcatd @@ -35,7 +35,8 @@ $XML::Simple::PREFERRED_PARSER='XML::Parser'; use xCAT::Table; use Data::Dumper; use Getopt::Long; -use Sys::Syslog; +use Sys::Syslog qw(:DEFAULT setlogsock); +setlogsock([qw(native,tcp,udp,unix,stream)]); use xCAT::NotifHandler; use xCAT_monitoring::monitorctrl; @@ -340,6 +341,13 @@ sub scan_plugins { } } scan_plugins; +eval { + syslog("local4|info","xCATd: service starting"); +}; +if ($@) { + print "ERROR: $@"; + exit; +} unless ($foreground) { daemonize; }