Bug 875844

Summary: sa-update cron script uses wrong path for pgrep
Product: [Fedora] Fedora Reporter: Nate Straz <nstraz>
Component: spamassassinAssignee: Warren Togami <wtogami>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: kevin, nb, plautrba, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-23 07:25:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nate Straz 2012-11-12 16:34:56 UTC
Description of problem:

the sa-update cron job fails to run because it can't find pgrep to see if spamd is running.


diff --git a/sa-update.cronscript b/sa-update.cronscript
index 70b7158..58b040d 100644
--- a/sa-update.cronscript
+++ b/sa-update.cronscript
@@ -10,7 +10,7 @@ unset SAUPDATE OPTIONS DEBUG NOTIFY_UPD
 [ -f /etc/sysconfig/sa-update ] && . /etc/sysconfig/sa-update
 [ "$SAUPDATE" = "no" ] && exit 0
 for daemon in spamd amavisd; do
-    /sbin/pgrep $daemon >& /dev/null
+    /bin/pgrep $daemon >& /dev/null
     [ $? -eq 0 ] && SAUPDATE=yes
 done
 [ -f /var/run/mimedefang.pid ] && SAUPDATE=yes


Version-Release number of selected component (if applicable):
spamassassin-3.3.2-12.fc17.x86_64

How reproducible:
100%

Steps to Reproduce:
1. sh -x /usr/share/spamassassin/sa-update.cron
  
Actual results:
spamassassin rules are not updated


Expected results:
spamassassin rules are updated

Additional info:

Comment 1 Fedora Update System 2012-11-15 21:19:30 UTC
spamassassin-3.3.2-14.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/spamassassin-3.3.2-14.fc18

Comment 2 Fedora Update System 2012-11-15 21:36:15 UTC
spamassassin-3.3.2-14.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/spamassassin-3.3.2-14.fc17

Comment 3 Fedora Update System 2012-11-15 21:50:21 UTC
spamassassin-3.3.2-14.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/spamassassin-3.3.2-14.fc16

Comment 4 Fedora Update System 2012-11-17 02:26:23 UTC
Package spamassassin-3.3.2-14.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing spamassassin-3.3.2-14.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-18349/spamassassin-3.3.2-14.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-11-23 07:25:04 UTC
spamassassin-3.3.2-14.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2012-11-26 01:52:37 UTC
spamassassin-3.3.2-14.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2012-11-26 01:54:02 UTC
spamassassin-3.3.2-14.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.