#!/bin/bash # MAIN: CRON STATUS # Check if cron-main_gateway is empty # Includes and Declarations (global variables, formatting, and functions) source "${APPLICATION_ROOT}/scripts/system/system-functions" source "${APPLICATION_ROOT}/scripts/system/system-declarations" # Check if cron-gateway is NOT empty if [ -s ${APPLICATION_ROOT}/var/main-cron_gateway ] then # Echo if cron-gateway is empty (cron job is active) confirmation_message "[S] Cron main stream status: ON / ACTIVE"; echo ""; else # Echo if cron-gateway is not empty (cron job is inactive!) confirmation_message "[S] Cron main stream status: OFF / INACTIVE"; echo ""; fi