- Timestamp:
- Jul 19, 2012 2:27:00 PM (12 years ago)
- Branches:
- compt_changes, master
- Children:
- f96be61
- Parents:
- dbc8b8e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/federate.pl
rdbc8b8e r558d829 233 233 elsif ($uname =~ /Linux/ ) { 234 234 # 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 } 237 245 } 238 246
Note: See TracChangeset
for help on using the changeset viewer.