https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6204
Summary: init.d script return 3 if spamd is dead but
/var/lock/subsys/spamd exists
Product: Spamassassin
Version: 3.3.0
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: spamc/spamd
AssignedTo: [email protected]
ReportedBy: [email protected]
https://fedoraproject.org/wiki/Packaging/SysVInitScript
Our initscript guidelines says "service <name> status" should return 3 if the
service is dead, but the accompanying /var/lock/subsys file still exists. The
following patch is trivial and tested by me. Please include in 3.3.0?
Index: redhat-rc-script.sh
===================================================================
--- redhat-rc-script.sh (revision 815456)
+++ redhat-rc-script.sh (working copy)
@@ -43,7 +43,7 @@
RETVAL=$?
echo
if [ $RETVAL = 0 ]; then
- touch /var/lock/subsys/spamassassin
+ touch /var/lock/subsys/spamd
fi
;;
stop)
@@ -53,7 +53,7 @@
RETVAL=$?
echo
if [ $RETVAL = 0 ]; then
- rm -f /var/lock/subsys/spamassassin
+ rm -f /var/lock/subsys/spamd
rm -f $SPAMD_PID
fi
;;
@@ -63,7 +63,7 @@
$0 start
;;
condrestart)
- [ -e /var/lock/subsys/spamassassin ] && $0 restart
+ [ -e /var/lock/subsys/spamd ] && $0 restart
;;
status)
status spamd
--
Configure bugmail:
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.