[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Newbie question
From: |
Dan Nelson |
Subject: |
Re: Newbie question |
Date: |
Wed, 12 Feb 2003 20:28:41 -0600 |
User-agent: |
Mutt/1.5.3i |
In the last episode (Feb 12), Satyr said:
> My apologies, as I know this must have been asked before. I did look
> through the archive but didn't find anything relevant. I am trying to
> install spamass-milter to a RH 8.0 install. This is the steps I have
> taken so far;
>
> 1. I installed spamassassin from the rpm on the install disks.
> 2. I downloaded spamass-milter.0.1.3a and compiled and install it as
> per the README.
> 3. I moved the spamass-milter.redhat.rc script to
> /etc/init.d/spamass-milter. So that it would start correctly. :-(
> 4. added the plugin line in the README file to my /etc/mail/sendmail.mc
> and then ran the make command to rebuild sendmail.cf.
> 5. While trying to troubleshoot the deamon, I noticed I didn't have
> anything in /etc/sysconfig and the start up script refers to it;
>
> SM_EXTRA_FLAGS=
> [ -x /etc/sysconfig/spamass-milter ] && . /etc/sysconfig/spamass-milter
>
> Although the make install didn't put anything in the /etc/sysconfig
> directory and this seems to be where I am falling down. As the deamon
> doesn't start;
/etc/sysconfig/spamass-milter is an optional file. You can override
SM_SOCKET and SM_EXTRA_FLAGS with it.
> address@hidden sysconfig]# service spamass-milter start
> Starting spamass-milter: execvp: No such file or directory
> [FAILED]
The redhat.rc script expects spamass-milter to be in
/usr/sbin/spamass-milter, but doesn't ensure that /usr/sbin is in the
PATH. That means when it comes time to start it with the daemon
command, it can fail. Try this patch:
Index: spamass-milter-redhat.rc
===================================================================
RCS file: /cvsroot/spamass-milt/spamass-milt/contrib/spamass-milter-redhat.rc,v
retrieving revision 1.3
diff -u -r1.3 spamass-milter-redhat.rc
--- spamass-milter-redhat.rc 17 Jan 2003 20:53:04 -0000 1.3
+++ spamass-milter-redhat.rc 13 Feb 2003 02:23:48 -0000
@@ -26,7 +26,7 @@
[ ${NETWORKING} = "no" ] && exit 0
[ -x /usr/sbin/spamass-milter ] || exit 0
-PATH=$PATH:/usr/bin:/usr/local/bin
+PATH=$PATH:/usr/sbin
RETVAL=0
This rc script is intended to be used within an rpm-built package, so
if you built and installed it manually, you may have to replace
/usr/sbin with /usr/local/sbin (on lines 28 and 29).
--
Dan Nelson
address@hidden