Bug 875844 - sa-update cron script uses wrong path for pgrep
Summary: sa-update cron script uses wrong path for pgrep
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: spamassassin
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Warren Togami
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-12 16:34 UTC by Nate Straz
Modified: 2012-11-26 01:54 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-23 07:25:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.