Hello,
Im working in rethad 9.0 and try to install spamassassin in a good way

I have found thate the install of spamassassin version 3.1.3 isnt not thate
easy as it looks.
When i start spamd in consolle like #pamd -u spambucket he referer to the
perl cofig.(no problem on thate, and works fine, seems to find a little bug
on there but works).

But when i start spamassassin like redhat 9.0 does, he goes to a other
direction

So give a look at the standaard /etc/init.d/spamassassin

------------------------------------------------------------------------------
#!/bin/sh
#
# spamassassin This script starts and stops the spamd daemon
#
# chkconfig: - 80 30
# processname: spamd
# description: spamd is a daemon process which uses SpamAssassin to check \
#              email messages for SPAM.  It is normally called by spamc \
#              from a MDA.
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
# Set default spamd configuration.
SPAMDOPTIONS="-d -c -m5 -H"
SPAMD_PID=/var/run/spamd.pid
# Source spamd configuration.
if [ -f /etc/sysconfig/spamassassin ] ; then
. /etc/sysconfig/spamassassin
fi
[ -f /usr/bin/spamd -o -f /usr/local/bin/spamd ] || exit 0
PATH=$PATH:/usr/bin:/usr/local/bin
# By default it's all good
RETVAL=0
# See how we were called.
case "$1" in
 start)
# Start daemon.
echo -n "Starting spamd: "
daemon $NICELEVEL spamd $SPAMDOPTIONS -r $SPAMD_PID
RETVAL=$?
echo
if [ $RETVAL = 0 ]; then
touch /var/lock/subsys/spamassassin
fi
;;
  stop)
# Stop daemons.
 echo -n "Shutting down spamd: "
 killproc spamd
RETVAL=$?
 echo
if [ $RETVAL = 0 ]; then
rm -f /var/lock/subsys/spamassassin
rm -f $SPAMD_PID
fi
;
  restart)
$0 stop
$0 start
;;
  condrestart)
[ -e /var/lock/subsys/spamassassin ] && $0 restart
;;
  status)
status spamd
RETVAL=$?
;;
  *)
echo "Usage: $0 {start|stop|restart|status|condrestart}"
RETVAL=1
;;
esac
exit $RETVAL

Okey lets grep some things when i try to start spamassassin in the redhat
way on defaul way

[EMAIL PROTECTED] root]# ps -ef | grep spamd
root      6578     1  2 11:40 ?        00:00:00 /usr/bin/spamd -d -c -m5 -H
-r /var/run/spamd.pid
root      6581  6578  0 11:40 ?        00:00:00 spamd child
root      6582  6578  0 11:40 ?        00:00:00 spamd child
root      6626  6595  0 11:40 pts/0    00:00:00 grep spamd
[EMAIL PROTECTED] root]#




Now i do a grep when i start spamassassin on the manual way like #spamd -u
spambucket

[EMAIL PROTECTED] root]# ps -ef | grep spamd
root      5615     1  0 04:16 ?        00:00:05 /usr/bin/perl -T -w
/usr/bin/spamd -u spambucket
508       5619  5615  0 04:16 ?        00:00:00 [spamd <defunct>]
508       5621  5615  0 04:16 ?        00:00:01 spamd child
508       5622  5615  0 04:16 ?        00:00:00 spamd child
root      6510  6431  0 11:35 pts/1    00:00:00 grep spamd

How can i fix this problem?

Thanks for reply anyway

best regards Henco 
-- 
View this message in context: 
http://www.nabble.com/Problems-on-rethad-9.0-tf1929957.html#a5285828
Sent from the SpamAssassin - Users forum at Nabble.com.

Reply via email to