Bug 247103
Summary: | Initscript Review | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Harald Hoyer <harald> |
Component: | xtide | Assignee: | Mamoru TASAKA <mtasaka> |
Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | dave |
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: | 2007-07-06 02:27:18 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: | |||
Bug Depends On: | |||
Bug Blocks: | 246824 |
Description
Harald Hoyer
2007-07-05 14:02:56 UTC
Well, I would say that xttpd should be okay if /etc/rc.d/init.d/function is correct. Actually I use "daemon $DAEMON", "failure" "status $PROG" etc... So if I have to fix up xttpd, *FIRST* I need the documents what funtions in /etc/rc.d/init.d/functions return. Any documents which explain this? (In reply to comment #1) > So if I have to fix up xttpd, *FIRST* I need the documents > what funtions in /etc/rc.d/init.d/functions return. I meant "I need the documents what status the functions in /etc/rc.d/init.d/functions return". A quick look in /etc/rc.d/init.d/functions reveils: success() returns 0 failure() returns the last return code for status() and daemon() just look in /etc/rc.d/init.d/functions.. fairly easy to read. Umm.. for me killproc() seems wrong. http://fedoraproject.org/wiki/FCNewInit/Initscripts says the following case must be considered as success: * running stop on a service already stopped or not running However, service {gpm,xttpd} stop when {gpm,xttpd} is stopped returns the message [FAILED], and the exit status is 0.... From the scripts, these only calls killproc() . Once closing as INSUFFICIENT_DATA. Actually, more explanation of initscripts side function, new proposal to packaging committee, and the proposal of what _must_ fix and what _should_ fix... seems missing for now. |