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

Steve Barnes e801dc
#!/bin/bash
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
Steve Barnes e801dc
[ -z "$NTPD_PID" ] && { t_Log "FAIL: couldn't find 'ntpd' in the process list."; exit $FAIL; }
Steve Barnes 464547
Steve Barnes 464547
# this is here because otherwise the [ operator exit 
Steve Barnes 464547
# status would become the return value from the function
Steve Barnes 464547
exit 0