Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-release > by-pkgid > 0d9b1828e17177ecdfb41a2fe989b3c9 > files > 1

hylafax-server-5.5.0-1.mga1.i586.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