Diff for /loncom/lond between versions 1.473 and 1.475

version 1.473, 2011/05/14 15:47:01 version 1.475, 2011/06/11 21:10:03
Line 6093  sub HUPSMAN {                      # sig Line 6093  sub HUPSMAN {                      # sig
 #  #
 sub ReloadApache {  sub ReloadApache {
 # --------------------------- Handle case of another apachereload process (locking)  # --------------------------- Handle case of another apachereload process (locking)
     my $execdir = $perlvar{'lonDaemons'};      if (&LONCAPA::try_to_lock('/tmp/lock_apachereload')) {
     my $script  = $execdir."/apachereload";          my $execdir = $perlvar{'lonDaemons'};
     system($script);          my $script  = $execdir."/apachereload";
           system($script);
           unlink('/tmp/lock_apachereload'); #  Remove the lock file.
       }
 }  }
   
 #  #
Line 6362  my %iphost = &Apache::lonnet::get_iphost Line 6365  my %iphost = &Apache::lonnet::get_iphost
 my $dist=`$perlvar{'lonDaemons'}/distprobe`;  my $dist=`$perlvar{'lonDaemons'}/distprobe`;
   
 my $arch = `uname -i`;  my $arch = `uname -i`;
   chomp($arch);
 if ($arch eq 'unknown') {  if ($arch eq 'unknown') {
     $arch = `uname -m`;      $arch = `uname -m`;
       chomp($arch);
 }  }
   
 # --------------------------------------------------------------  # --------------------------------------------------------------

Removed from v.1.473  
changed lines
  Added in v.1.475


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>