Bug 481261

Summary: initscript condrestart does not call status
Product: [Fedora] Fedora Reporter: Ingvar Hagelund <ingvar>
Component: ntpAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 10CC: mlichvar, pertusus
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-20 12:01:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ingvar Hagelund 2009-01-23 07:17:29 UTC
Description of problem:
initscript condrestart does not call status

Version-Release number of selected component (if applicable):
4.2.4p5-2.fc10 (and all previous)

How reproducible:
Always

Steps to Reproduce:
1. service ntpd start
2. pkill -9 ntpd
3. service ntpd condrestart

Actual results:
daemon starts though it was dead

Expected results:
daemon was dead, and should not be resurrected just because the pidfile exists

Additional info:
This behaviour is typically old-style RedHat, and many daemon init scripts
behave like this. According to 
http://fedoraproject.org/wiki/Packaging/SysVInitScript
condrestart and try-restart should use the status function (from
/etc/sysconfig/functions), and not just rely on the pidfile.

Comment 1 Miroslav Lichvar 2009-04-20 12:01:50 UTC
Fixed in ntp-4.2.4p6-4.fc11. Thanks.