mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
network time: use service_log() #6099
This commit is contained in:
parent
8c1b15b9d2
commit
3d67dbae17
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user