From 7c735dfb610413c1d7312dee92a7e5c32c32ab2b Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 12 Mar 2009 13:39:44 +0000 Subject: [PATCH] stop and start conserver after config file changes, restart does not pick up changes git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2879 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/conserver.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/conserver.pm b/xCAT-server/lib/xcat/plugins/conserver.pm index d55f7959d..54c1c19a3 100644 --- a/xCAT-server/lib/xcat/plugins/conserver.pm +++ b/xCAT-server/lib/xcat/plugins/conserver.pm @@ -350,11 +350,14 @@ sub makeconservercf { #restart conserver daemon my $cmd; if (-f "/var/run/conserver.pid") { - $cmd = "/etc/init.d/conserver restart"; + $cmd = "/etc/init.d/conserver stop"; + xCAT::Utils->runcmd($cmd, 0); + $cmd = "/etc/init.d/conserver start"; + xCAT::Utils->runcmd($cmd, 0); } else { $cmd = "/etc/init.d/conserver start"; + xCAT::Utils->runcmd($cmd, 0); } - xCAT::Utils->runcmd($cmd, -1); } }