systemctl versus init.d
Posted: Mon Aug 14, 2017 1:14 pm
G 'Day Nagios Support,
Question. I understand how systemd is replacing the /etc/init.d scripts for service startups in RHEL7 and notice how the latest release of httpd.service when installing Nagios XI. So I have a question about that...I recently installed Nagios XI on a fresh clean system and have noticed that ndo2db utilized both systemd and /etc/init.d script. The reason I ask is that I stopped ndo2db using the init.d script and then restarted it but thereafter my localhost monitoring using "/usr/local/nagiosxi/scripts/manage_services.sh status ndo2db" began failing and it wasn't until I stopped ndo2db and then used systemctl to start it did it get its status correct. My guess is because systemctl expects the service to be started using itself and not a direct call from the /etc/init.d/ndo2db script. When I tried using the command manually
So in the latest nagiosxi release should ndo2db be started from within multi-user.target.wants and not the /etc/init.d/ndo2db script?
Trying to understand why its being defined in both?
Let me know and thanks,
Danny
Question. I understand how systemd is replacing the /etc/init.d scripts for service startups in RHEL7 and notice how the latest release of httpd.service when installing Nagios XI. So I have a question about that...I recently installed Nagios XI on a fresh clean system and have noticed that ndo2db utilized both systemd and /etc/init.d script. The reason I ask is that I stopped ndo2db using the init.d script and then restarted it but thereafter my localhost monitoring using "/usr/local/nagiosxi/scripts/manage_services.sh status ndo2db" began failing and it wasn't until I stopped ndo2db and then used systemctl to start it did it get its status correct. My guess is because systemctl expects the service to be started using itself and not a direct call from the /etc/init.d/ndo2db script. When I tried using the command manually
So in the latest nagiosxi release should ndo2db be started from within multi-user.target.wants and not the /etc/init.d/ndo2db script?
Trying to understand why its being defined in both?
Let me know and thanks,
Danny