fix the restart error

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14007 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2012-10-15 01:51:15 +00:00
parent 6256117b49
commit 97f1c95cc7

View File

@ -1503,10 +1503,10 @@ sub enable_TFTPhpa
if (-x "/usr/sbin/in.tftpd") {
system("killall in.tftpd"); #xinetd can leave behind blocking tftp servers even if it won't start new ones
if ($distro !~ /ubuntu.*/i){
system("stop tftpd-hpa");
if ($distro =~ /ubuntu.*/i){
system("stop tftpd-hpa");
}
my @tftpprocs=`ps axf|grep -v grep|grep in.tftpd`;
my @tftpprocs=`ps axf|grep -v grep|grep in.tftpd`;
while (@tftpprocs) {
sleep 0.1;
}