From fabb8d07409563912f08424eb8b21a77c1849eaa Mon Sep 17 00:00:00 2001 From: lissav Date: Sun, 16 Mar 2008 13:39:40 +0000 Subject: [PATCH] add restart of daemon when xcatd starts in SN plugins git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@789 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT-2.0/xCAT/Utils.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/perl-xCAT-2.0/xCAT/Utils.pm b/perl-xCAT-2.0/xCAT/Utils.pm index cd1a265f4..12e4467bf 100644 --- a/perl-xCAT-2.0/xCAT/Utils.pm +++ b/perl-xCAT-2.0/xCAT/Utils.pm @@ -1429,8 +1429,9 @@ sub readSNInfo Input: service nodename, service,ipaddres(s) of service node Output: + 0 - no service required 1 - setup service - 0 - do not setupservice + 2 - service is setup, just start the daemon -1 - error Globals: none @@ -1446,12 +1447,12 @@ sub isServiceReq { my ($class, $servicenodename, $service, $serviceip) = @_; my @ips = @$serviceip; # list of service node ip addresses - + my $rc=0; # check if service is already setup `grep $service /etc/xCATSN`; if ($? == 0) - { # service is already setup - return 0; + { # service is already setup, just start daemon + return 2; } $rc = xCAT::Utils->exportDBConfig(); # export DB env