[Mimedefang] Re: Mimedefang daemons won't stop

Todd Aiken taiken at ubishops.ca
Wed Mar 26 09:32:00 EST 2003


> I do not use the Red Hat init script on my Red Hat box.  Here
> is an edited version of the init script I use for our commercial CanIt
> product; it seems to work on all the UNIXes we support.  Be sure
> to create /etc/sysconfig/mimedefang and set all the variables
> (see redhat/mimedefang-sysconfig in the distribution.)
> 
>
> # Is the program executable?  We search in /usr/bin and /usr/local/bin.
> 
> if [ -x /usr/local/bin/$prog ] ; then
>     PROGDIR=/usr/local/bin
> elif [ -x /usr/bin/$prog ] ; then
>     PROGDIR=/usr/bin
> elif [ -x /usr/local/bin/$prog ] ; then
>     PROGDIR=/usr/local/bin
> else
>     exit 0
> fi

It looks like /usr/local/bin is being searched twice here.

CU L8R...

Todd A. Aiken 
Systems Analyst - Administrator
Cole Computer Centre
BISHOP'S UNIVERSITY
Lennoxville, Quebec, CANADA

-----BEGIN GEEK CODE BLOCK-----
Version 3.12 (http://www.geekcode.com)
GCS$/MU d+(-) s++:+ a C++$ UL++++$ P+ L++ E->+ W+>++ N++ o? K-
w O- M V? PS PE- Y PGP- t+ 5 X R- tv+ b DI(+) D++ G e+ h !r>r+++ y-
------END GEEK CODE BLOCK------






More information about the MIMEDefang mailing list