The install process will exit with a failure for the ntpd service restart.
Centos8 now handles ntp via chrony and the xi-sys.cfg still lists the dependency as
Code: Select all
ntpd="ntpd"
Code: Select all
#!/bin/bash -e
. ./xi-sys.cfg
# Was previous step completed?
if [ ! -f installed.importnagiosql ]; then
echo "NagiosQL data was not imported - run previous script" >&2
exit 1
fi
for svc in $httpd nagios npcd [color=#FF0000]$ntpd[/color] $crond; do
if [ ! `command -v systemctl` ]; then
service $svc restart
else
systemctl restart $svc
fi
done
echo "Daemons started OK"
Code: Select all
#!/bin/bash -e
. ./xi-sys.cfg
# Was previous step completed?
if [ ! -f installed.importnagiosql ]; then
echo "NagiosQL data was not imported - run previous script" >&2
exit 1
fi
for svc in $httpd nagios npcd $crond; do
if [ ! `command -v systemctl` ]; then
service $svc restart
else
systemctl restart $svc
fi
done
echo "Daemons started OK"
--SN