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
This commit is contained in:
parent
0dc6f9de74
commit
7c735dfb61
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user