Bugs item #1243712, was opened at 2005-07-23 15:39
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=1243712&group_id=61702
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: pop3proxy
Group: 1.0.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Marek Zielinski (marekz)
Assigned to: Nobody/Anonymous (nobody)
Summary: Call to sb_server.py does not return
Initial Comment:
Hi,
I am running SpamBayes under Fedora, with sb_server
running as service. I am using Fedora Service
Configuration applet, and it runs fine, I can check the
status and stop. However, when I try to start it (it
frequently fails with error "object has no attribute
'isClosed'"), the call does not return and the whole
Service Configuration hangs. SpamBayes sb_server runs
OK, though, and after killing the Service Configuration
applet I can restart it..
The script I use is below..
Any help? Perhaps I can fix the script, but I was not
succesfull till now. Other services run fine...
_Marek
#!/bin/bash
#
# spambayes: Starts the spam filter as a pop3 proxy
#
# Version: @(#) /etc/init.d/spambayes 1.0
#
# chkconfig: - 95 21
# description: This shell script takes care of starting
and stopping # spambayes pop3 proxy
# processname: sb_server.py
#
# Source function library.
. /etc/init.d/functions
SBPROXY=/usr/bin/sb_server.py
SBLOG=/var/log/spam.log
SBDIR=/usr/local/spambayes
[ -x $SBPROXY ] || exit 0
RETVAL=0
start () {
date >> $SBLOG
echo -n "Starting SpamBayes POP3 proxy: "
if [ ! -d $SBDIR ] ; then
echo "Repertoire $SBDIR non present" >> $SBLOG
RETVAL=1
else
cd $SBDIR
($SBPROXY 2>&1 >> $SBLOG) &
RETVAL=$?
fi
action "" [ $RETVAL = 0 ]
return $RETVAL
}
stop () {
# stop daemon
date >> $SBLOG
echo -n "Stopping SpamBayes POP3 proxy: "
killproc $SBPROXY 1
RETVAL=$?
echo
[ $RETVAL = 0 ]
return $RETVAL
}
restart () {
stop
start
RETVAL=$?
return $RETVAL
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status $SBPROXY
RETVAL=$?
;;
restart)
restart
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
RETVAL=1
esac
exit $RETVAL
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=1243712&group_id=61702
_______________________________________________
Spambayes-bugs mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-bugs