server ntp.marcopauloferreira.home
gravar o ficheiro editado
e aqui começam as (pequenas para já) mudanças:
verificar se o serviço está activo:
[root@ntp.home etc]# systemctl status ntpd
ntpd.service - Network Time Service
Loaded: loaded (/usr/lib/systemd/system/ntpd.service; disabled)
Active: inactive (dead)
activar o serviço a seguir, para garantir que fica presente no runlevel actual
[root@ntp.home etc]# systemctl enable ntpd
e fazer um restart à máquina para garantir que após o reboot, serviço realmente está activo, a alterantiva poderia ter sido fazer um systemctl start ntpd,
[root@ntp.home~]# systemctl status ntpd
ntpd.service - Network Time Service
Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled)
Active: active (running) since Fri 2014-08-15 08:51:18 CAT; 45s ago
Process: 602 ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 634 (ntpd)
CGroup: /system.slice/ntpd.service
└─634 /usr/sbin/ntpd -u ntp:ntp -g
Aug 15 08:51:19 ntp.home ntpd[634]: 0.0.0.0 c012 02 freq_set kernel 11.583 PPM
Aug 15 08:51:19 ntp.home ntpd[643]: signal_no_reset: signal 17 had flags 4000000
Aug 15 08:51:21 ntp.home ntpd_intres[643]: host name not found: ntp.marcopauloferreira.home
Aug 15 08:51:23 ntp.home ntpd[634]: Listen normally on 4 eth0 10.201.44.85 UDP 123
Aug 15 08:51:23 ntp.home ntpd[634]: Listen normally on 5 eth0 fe80::250:56ff:fe99:50d UDP 123
Aug 15 08:51:23 ntp.home ntpd[634]: new interface(s) found: waking up resolver
Aug 15 08:51:25 ntp.home ntpd_intres[643]: DNS ntp.marcopauloferreira.home -> 123.123.123.123
Aug 15 08:51:26 ntp.home ntpd[634]: 0.0.0.0 c61c 0c clock_step -0.229999 s
Aug 15 08:51:26 ntp.home ntpd[634]: 0.0.0.0 c614 04 freq_mode
Aug 15 08:51:27 ntp.home ntpd[634]: 0.0.0.0 c618 08 no_sys_peer
como é possível ver, o gestor de serviços das versões 7 do CentOS/RHEL está muito mais evoluído e já mostra até partes do log que nos permitem ter uma noção muito melhor do que realmente se passou ou está a passar com um determinado serviço. Até o pedido DNS para resolver o endereço do servidor NTP se consegue ver, gosto disto!
No comments:
Post a Comment