1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/etc/periodic/daily/500.queuerun 72677 2001-02-19 02:47:42Z peter $
| 3# $FreeBSD: head/etc/periodic/daily/500.queuerun 94342 2002-04-10 03:58:40Z gshapiro $
|
4# 5 6# If there is a global system configuration file, suck it in. 7# 8if [ -r /etc/defaults/periodic.conf ] 9then 10 . /etc/defaults/periodic.conf 11 source_periodic_confs 12fi 13 14case "$daily_queuerun_enable" in 15 [Yy][Ee][Ss]) 16 if [ ! -x /usr/sbin/sendmail ] 17 then 18 echo '$daily_queuerun_enable is set but /usr/sbin/sendmail' \ 19 "isn't executable" 20 rc=2
| 4# 5 6# If there is a global system configuration file, suck it in. 7# 8if [ -r /etc/defaults/periodic.conf ] 9then 10 . /etc/defaults/periodic.conf 11 source_periodic_confs 12fi 13 14case "$daily_queuerun_enable" in 15 [Yy][Ee][Ss]) 16 if [ ! -x /usr/sbin/sendmail ] 17 then 18 echo '$daily_queuerun_enable is set but /usr/sbin/sendmail' \ 19 "isn't executable" 20 rc=2
|
21 elif [ ! -d /var/spool/mqueue ] 22 then 23 echo '$daily_queuerun_enable is set but /var/spool/mqueue' \ 24 "doesn't exist" 25 rc=2
| |
26 else 27 /usr/sbin/sendmail -q >/dev/null 2>&1 &
| 21 else 22 /usr/sbin/sendmail -q >/dev/null 2>&1 &
|
| 23 case "$daily_submit_queuerun" in 24 [Yy][Ee][Ss]) 25 if [ -f /etc/mail/submit.cf ] 26 then 27 /usr/sbin/sendmail -q -Ac >/dev/null 2>&1 & 28 fi;; 29 esac
|
28 rc=0 29 fi;; 30 31 *) rc=0;; 32esac 33 34exit $rc
| 30 rc=0 31 fi;; 32 33 *) rc=0;; 34esac 35 36exit $rc
|