bstinson / centos / t_functional

Forked from centos/t_functional 4 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
Steve Barnes e801dc
# Start NTPd services and confirm it's running.
Steve Barnes e801dc
chkconfig ntpd on
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; }