version 1.43, 2020/01/04 18:03:16
|
version 1.45, 2020/01/21 16:31:27
|
Line 49 if (('<DIST />' eq 'fedora26') || ('<DIS
|
Line 49 if (('<DIST />' eq 'fedora26') || ('<DIS
|
} |
} |
my $NTPD; |
my $NTPD; |
my $name = 'ntp'; |
my $name = 'ntp'; |
my $binname = $name; |
|
my $checkcmd = 'ps -ef |grep ntp |grep -v grep |grep -v ntpcheck'; |
my $checkcmd = 'ps -ef |grep ntp |grep -v grep |grep -v ntpcheck'; |
my $startntpcmd; |
my $startntpcmd; |
my $is_running; |
my $is_running; |
Line 68 if (('<DIST />' eq 'fedora15') || ('<
|
Line 67 if (('<DIST />' eq 'fedora15') || ('<
|
('<DIST />' eq 'ubuntu20') || ('<DIST />' eq 'rhes8') || |
('<DIST />' eq 'ubuntu20') || ('<DIST />' eq 'rhes8') || |
('<DIST />' eq 'centos8') || ('<DIST />' eq 'oracle8')) { |
('<DIST />' eq 'centos8') || ('<DIST />' eq 'oracle8')) { |
$NTPD = 'ntpd'; |
$NTPD = 'ntpd'; |
|
my $binname = $NTPD; |
if (('<DIST />' eq 'ubuntu18') || ('<DIST />' eq 'ubuntu20')) { |
if (('<DIST />' eq 'ubuntu18') || ('<DIST />' eq 'ubuntu20')) { |
$NTPD = 'chrony'; |
$NTPD = 'chrony'; |
$name = $NTPD; |
$name = $NTPD; |