Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1254459

Summary: /etc/logrotate.d/openvas-scanner from openvas-scanner-5.0.3-3.fc21.x86_64 has error in postrotate script that gives "kill: not enough arguments" log message
Product: [Fedora] Fedora Reporter: major <major>
Component: openvas-scannerAssignee: Stjepan Gros <stjepan.gros>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 21CC: cheese, huzaifas, mail, rebus, stjepan.gros, xavier
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openvas-scanner-5.0.4-6.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-13 06:53:45 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 major 2015-08-18 08:08:49 UTC
/etc/logrotate.d/openvas-scanner from openvas-scanner-5.0.3-3.fc21.x86_64
 has the following postrotate script:

/bin/kill -HUP `pidof openvassd`


This script produces the following erroneous log message when openvassd is not running because the pidof command produces no output for /bin/kill to use:

kill: not enough arguments
error: error running non-shared postrotate script for /var/log/openvas/openvassd.log of '/var/log/openvas/openvassd.log '


The postrotate script should probably be something like the following:

/usr/bin/killall -HUP openvassd > /dev/null 2>&1 || true

Comment 1 Fedora Update System 2015-08-23 17:41:46 UTC
openvas-gsa-6.0.5-1.fc21 openvas-manager-6.0.5-1.fc21 has been submitted as an update to Fedora 21. https://bugzilla.redhat.com/show_bug.cgi?id=1254459

Comment 2 Fedora Update System 2015-08-23 17:42:12 UTC
openvas-gsa-6.0.5-1.fc23 openvas-manager-6.0.5-1.fc23 openvas-scanner-5.0.4-6.fc23 has been submitted as an update to Fedora 23. https://bugzilla.redhat.com/show_bug.cgi?id=1254459

Comment 3 Fedora Update System 2015-08-23 17:42:24 UTC
openvas-gsa-6.0.5-1.fc22 openvas-manager-6.0.5-1.fc22 has been submitted as an update to Fedora 22. https://bugzilla.redhat.com/show_bug.cgi?id=1254459

Comment 4 Michal Ambroz 2015-08-23 17:53:44 UTC
Hello,
thanks for spotting. Updated in rawhide and 23.
It doesn't seems to be so urgent for 22,21 as the error manifests only when not running the process. To 22,21 it will be pushed with next update of openvas-scanner - if any.

Michal Ambroz

Comment 5 Fedora Update System 2015-08-24 21:54:51 UTC
openvas-gsa-6.0.5-1.fc22, openvas-manager-6.0.5-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update openvas-manager openvas-gsa'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14023

Comment 6 Fedora Update System 2015-08-24 21:58:10 UTC
openvas-gsa-6.0.5-1.fc23, openvas-manager-6.0.5-1.fc23, openvas-scanner-5.0.4-6.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update openvas-scanner openvas-manager openvas-gsa'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14022

Comment 7 Fedora Update System 2015-08-24 22:22:37 UTC
openvas-gsa-6.0.5-1.fc21, openvas-manager-6.0.5-1.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update openvas-manager openvas-gsa'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14021

Comment 8 Fedora Update System 2015-10-13 06:53:41 UTC
openvas-gsa-6.0.5-1.fc21, openvas-manager-6.0.5-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2015-10-13 17:03:46 UTC
openvas-gsa-6.0.5-1.fc22, openvas-manager-6.0.5-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2015-11-01 02:49:48 UTC
openvas-gsa-6.0.5-1.fc23, openvas-manager-6.0.5-1.fc23, openvas-scanner-5.0.4-6.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.