[pve-devel] [PATCH pve-manager] Add ntp to service list.

Alexandre DERUMIER aderumier at odiso.com
Mon Nov 23 17:48:53 CET 2015


I don't see ntp service on a fresh proxmox 4.0 install

# systemctl status ntp
● ntp.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)




----- Mail original -----
De: "Wolfgang Bumiller" <w.bumiller at proxmox.com>
À: "aderumier" <aderumier at odiso.com>, "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Lundi 23 Novembre 2015 16:27:29
Objet: Re: [pve-devel] [PATCH pve-manager] Add ntp to service list.

> On November 23, 2015 at 4:10 PM Alexandre DERUMIER <aderumier at odiso.com> 
> wrote: 
> for proxmox 4.0 fresh install, 
> 
> it should be 
> 
> systemd-timesyncd.service 
> 
> 
> but for upgraded proxmox 3->4, it's ntp.service 

I see both, though... 
ntp.service 
loaded active running LSB: Start NTP daemon 
systemd-timesyncd.service 
loaded active running Network Time Synchronization 

But yes, `timedatectl set-ntp *` enables/disables the systemd-timesyncd.service. 
Interestingly the `timedatectl` status output always shows NTP as on even when 
timesyncd is off and just ntp.service is running. 
That behavior is just weird. 

Maybe we should just add both to the list? 

> ----- Mail original ----- 
> De: "Wolfgang Bumiller" <w.bumiller at proxmox.com> 
> À: "pve-devel" <pve-devel at pve.proxmox.com> 
> Envoyé: Lundi 23 Novembre 2015 15:03:29 
> Objet: [pve-devel] [PATCH pve-manager] Add ntp to service list. 
> 
> Closes #821 
> --- 
> PVE/API2/Services.pm | 1 + 
> 1 file changed, 1 insertion(+) 
> 
> diff --git a/PVE/API2/Services.pm b/PVE/API2/Services.pm 
> index e413e84..995519c 100644 
> --- a/PVE/API2/Services.pm 
> +++ b/PVE/API2/Services.pm 
> @@ -32,6 +32,7 @@ my $service_name_list = [ 
> 'cron', 
> 'postfix', 
> 'ksmtuned', 
> + 'ntp', 
> ]; 
> 
> my $get_full_service_state = sub { 
> -- 
> 2.1.4 
> 
> 
> _______________________________________________ 
> pve-devel mailing list 
> pve-devel at pve.proxmox.com 
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
> _______________________________________________ 
> pve-devel mailing list 
> pve-devel at pve.proxmox.com 
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list