bstinson / centos / t_functional

Forked from centos/t_functional 3 years ago
Clone

Blame tests/p_ntp/5-start-check.sh

Steve Barnes e801dc
#!/bin/bash
root 2bfd68
# Author: Steve Barnes (steve@echo.id.au)
Steve Barnes e801dc
Pablo Greco c2d6da
if [ "$centos_ver" -ge 8 ] ; then
Pablo Greco c2d6da
  exit 0
Pablo Greco c2d6da
fi
Steve Barnes e801dc
# Start NTPd services and confirm it's running.
Steve Barnes 464547
t_ServiceControl ntpd start
Steve Barnes e801dc
Steve Barnes e801dc
NTPD_PID=$(pidof ntpd)
Steve Barnes e801dc
root 2bfd68
[ "$NTPD_PID" ] || { t_Log "FAIL: couldn't find 'ntpd' in the process list."; exit $FAIL; }