Changeset 37f6592 for fedkit


Ignore:
Timestamp:
Mar 2, 2010 1:32:48 PM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
0ac1934
Parents:
6f82229
Message:

always do the ntp thing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedkit/federate.pl

    r6f82229 r37f6592  
    129129    if ($uname =~ /FreeBSD/ ) {
    130130        system("umount -A -f -t nfs,smbfs,cifs");
    131         # Restart ntp
    132         system("/etc/rc.d/ntpd stop; /usr/sbin/ntpdate boss; " .
    133             "/etc/rc.d/ntpd start;");
    134                                                    
    135131    }
    136132    elsif ($uname =~ /Linux/ ) {
     
    143139            system("umount -f $F[1]");
    144140        }
    145         # restart ntp
    146         system("/etc/rc.d/init.d/ntpd stop; /usr/sbin/ntpdate boss; ".
    147             "/etc/rc.d/init.d/ntpd start");
    148141    }
    149142
     
    154147    system("$perl /usr/local/federation/bin/$smbmount $smbshare $gateway " .
    155148        "$smbuser $smbproject");
     149}
     150
     151if ($uname =~ /FreeBSD/ ) {
     152    # Restart ntp
     153    system("/etc/rc.d/ntpd stop; /usr/sbin/ntpdate boss; " .
     154        "/etc/rc.d/ntpd start;");
     155                                               
     156}
     157elsif ($uname =~ /Linux/ ) {
     158    # restart ntp
     159    system("/etc/rc.d/init.d/ntpd stop; /usr/sbin/ntpdate boss; ".
     160        "/etc/rc.d/init.d/ntpd start");
    156161}
    157162
Note: See TracChangeset for help on using the changeset viewer.