network time: use service_log() #6099

This commit is contained in:
Franco Fichtner 2022-10-20 16:54:43 +02:00
parent 8c1b15b9d2
commit 3d67dbae17

View File

@ -177,10 +177,7 @@ function ntpd_configure_do($verbose = false)
return;
}
if ($verbose) {
echo 'Starting NTP service...';
flush();
}
service_log('Starting NTP service...', $verbose);
$driftfile = '/var/db/ntpd.drift';
$statsdir = '/var/log/ntp';
@ -462,7 +459,5 @@ function ntpd_configure_do($verbose = false)
mwexecf_bg('/usr/local/sbin/ntpd -q -g -c %s', ['/var/etc/ntpd.conf']);
}
if ($verbose) {
echo "done.\n";
}
service_log("done.\n", $verbose);
}