tripleo-common/healthcheck/cron

11 lines
191 B
Bash
Executable File

#!/bin/bash
file="${1:-root}"
if [ -f /var/spool/cron/${file} ]; then
nb_lines=$(grep -cEv '^#' /var/spool/cron/${file})
if [ $nb_lines -ge 2 ]; then
exit 0
fi
fi
exit 1