1#!/bin/sh 2# 3# 4 5# If there is a global system configuration file, suck it in. 6# 7if [ -r /etc/defaults/periodic.conf ] 8then 9 . /etc/defaults/periodic.conf 10 source_periodic_confs 11fi 12 13case "$daily_queuerun_enable" in 14 [Yy][Ee][Ss]) 15 if [ ! -x /usr/sbin/sendmail ] 16 then 17 echo '$daily_queuerun_enable is set but /usr/sbin/sendmail' \ 18 "isn't executable" 19 rc=2 20 else 21 /usr/sbin/sendmail -q >/dev/null 2>&1 & 22 case "$daily_submit_queuerun" in 23 [Yy][Ee][Ss]) 24 if [ -f /etc/mail/submit.cf ] 25 then 26 /usr/sbin/sendmail -q -Ac >/dev/null 2>&1 & 27 fi;; 28 esac 29 rc=0 30 fi;; 31 32 *) rc=0;; 33esac 34 35exit $rc 36