Bug 166773 - ntp %post scriptlet fails on upgrade, if ntpd is disabled.
Summary: ntp %post scriptlet fails on upgrade, if ntpd is disabled.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: ntp
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Miroslav Lichvar
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks: 181409
TreeView+ depends on / blocked
 
Reported: 2005-08-25 15:34 UTC by Charlie Brady
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version: RHSA-2006-0393
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-10 18:25:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
ntp-4.2.0.a.20050816-3.src.rpm (2.40 MB, patch)
2005-10-31 10:44 UTC, Petr Raszyk
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2006:0393 0 normal SHIPPED_LIVE Low: ntp security update 2006-08-10 04:00:00 UTC

Description Charlie Brady 2005-08-25 15:34:53 UTC
This was reportedly fixed for FC1, but persists in RHEL4. See:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=110321

To fix, change:

    # start ntp if it was running previously
    [ $wasrunning -eq 0 ] && service ntpd start > /dev/null 2>&1

to:

    # start ntp if it was running previously
    if [ $wasrunning -eq 0 ]; then service ntpd start > /dev/null 2>&1 ; fi

(or do something else so that exit status of script is 0).

Comment 1 Petr Raszyk 2005-10-31 10:41:41 UTC
Fixed.



 # start ntp if it was running previously
 [ $wasrunning -eq 0 ] && service ntpd start > /dev/null 2>&1 || :

Comment 2 Petr Raszyk 2005-10-31 10:44:06 UTC
Created attachment 120556 [details]
ntp-4.2.0.a.20050816-3.src.rpm

Comment 8 Red Hat Bugzilla 2006-08-10 18:25:08 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2006-0393.html



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