Code: Select all
systemctl enable dhcpd.service
systemctl enable named.service
systemctl enable ntpd.service
systemctl enable httpd.service
After installation and on first login, a ps -ef | grep httpd, or ps -ef | grep named or a ps -ef | grep dhcpd all return meaningful results, showing that *those* services have indeed been enabled and are auto-starting just fine. But a similar grep for ntpd returns nothing, and a ntpq -p returns nothing, either (except a timeout, expected when the daemon isn't running).
However, I can manually issue the command systemctl start ntpd.service no problems, at which point both ps and ntpq tests all return correct results. I had thought maybe the failure to autostart was down to my ntp.conf having bad entries, but since I can start the thing manually without error, I imagine that it can't be that.
Reduced to wild experimentation, I even added "service ntpd start" and/or "systemctl start ntpd.service" in my rc.local file, but neither produces a running ntp daemon at first login.
What am I doing wrong, please?