mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 09:36:41 +00:00
Do not stop tftp service in xcatd when restarting xcad service
close-issue: #2463
This commit is contained in:
parent
085e2d45c5
commit
7f069d3f48
@ -139,6 +139,7 @@ Getopt::Long::Configure("pass_through");
|
||||
use Storable qw(dclone);
|
||||
use POSIX qw(WNOHANG setsid :errno_h);
|
||||
my $pidfile;
|
||||
my $reload;
|
||||
my $foreground;
|
||||
GetOptions(
|
||||
'pidfile|p=s' => \$pidfile,
|
||||
@ -1278,6 +1279,7 @@ $SIG{USR2} = sub {
|
||||
if ($listener) {
|
||||
unlink("/var/run/xcat/mainservice.pid"); close($listener); $quit = 1; $listener = 0;
|
||||
$udpctl = 0;
|
||||
$reload = 1;
|
||||
xCAT::MsgUtils->message("S", "xcatd main service $$ quiescing");
|
||||
}
|
||||
};
|
||||
@ -1552,7 +1554,9 @@ if ($dbmaster) {
|
||||
|
||||
# stop the monitoring process
|
||||
xCAT_monitoring::monitorctrl::stop($$);
|
||||
stop_tftp_service();
|
||||
if (! $reload) {
|
||||
stop_tftp_service();
|
||||
}
|
||||
|
||||
sub stop_tftp_service {
|
||||
eval {
|
||||
|
Loading…
x
Reference in New Issue
Block a user