Changeset 558d829


Ignore:
Timestamp:
Jul 19, 2012 2:27:00 PM (8 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, master
Children:
f96be61
Parents:
dbc8b8e
Message:

Better ntp start for ubuntu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedkit/federate.pl

    rdbc8b8e r558d829  
    233233elsif ($uname =~ /Linux/ ) {
    234234    # restart ntp
    235     system("/etc/rc.d/init.d/ntpd stop; /usr/sbin/ntpdate boss; ".
    236         "/etc/rc.d/init.d/ntpd start");
     235    if (-d "/etc/rc.d/init.d" ) {
     236        system("/etc/rc.d/init.d/ntpd stop; /usr/sbin/ntpdate boss; ".
     237            "/etc/rc.d/init.d/ntpd start");
     238    elsif (-d "/etc/init.d" ) {
     239        system("service ntp stop; /usr/sbin/ntpdate boss; ".
     240            "service ntp start");
     241    }
     242    else {
     243        print "Cannot find ntp directories\n";
     244    }
    237245}
    238246
Note: See TracChangeset for help on using the changeset viewer.