1
I compiled and installed ntp-4.2.8
using this link
and created a rpm by running checkinstall
on RHEL 6.5
.
I used the command ntpd -l logs
to manually start ntpd.
After starting I am able to verify ntp using commands:
bash-4.1# ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
209.118.204.201 .INIT. 16 u - 64 0 0.000 0.000 0.000
66.228.42.59 .INIT. 16 u - 64 0 0.000 0.000 0.000
97.107.129.217 .INIT. 16 u - 64 0 0.000 0.000 0.000
198.60.22.240 .INIT. 16 u - 64 0 0.000 0.000 0.000
bash-4.1#
When running chkconfig, it throws error:
bash-4.1# chkconfig --list ntpd
error reading information on service ntpd: No such file or directory
checked the path /etc/init.d
and found that ntpd
service name is not present in it.
Now I copied the ntpd
binary at /etc/init.d
location and executed the command:
service ntpd start
Now I am able to see the ntpd process running
bash-4.1# ps -aef | grep ntp
root 12409 20389 0 08:16 pts/2 00:00:00 grep ntp
root 30522 1 0 08:03 ? 00:00:00 /etc/init.d/ntpd start
But when I run services command I dont see any ntpd service running
bash-4.1# service --status-all | grep ntpd
bash-4.1#
and again tried the chkconfig
command:
bash-4.1# chkconfig --list ntpd
service ntpd does not support chkconfig
Now I tried adding it using chkconfig command and again it throws error:
bash-4.1# chkconfig --add ntpd
service ntpd does not support chkconfig
But when I install ntp-4.2.6p5-1.el6.x86_64.rpm
from iso
it automatically gets added in init.d
file and gets started on its own.
Where and how should I make the entry for ntp-4.2.8
so that it starts automatically as a service.
I think I need to create a script under '/etc/init.d' naming 'ntpd' rather than copiend binary at this place. – Vikram Singh – 2014-12-26T11:13:44.277