Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > adec510be30444a877cdec4e382b332f > files > 1

hylafax-server-5.2.0-3mdv2008.1.x86_64.rpm

#!/bin/sh
# (oe 20050101) only try to send mails if hylafax is configured
# to run in current runlevel and is indeed running.
# RUNLEVEL and RUNME are ideas taken from trustix.

RUNLEVEL=`runlevel|awk '{ print $2 }'`
RUNME=`chkconfig --list hylafax-server|grep ${RUNLEVEL}:on`
PID=`pidof hfaxd`

if [ x"${RUNME}" != x ] && ! [ -z "${PID}" ]; then
    /usr/sbin/faxcron | mail faxmaster
    exit 0
fi