Bug 524486
Summary: | netfs init script collected problems LSB-compilant | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Yulia Kopkova <ykopkova> |
Component: | initscripts | Assignee: | Bill Nottingham <notting> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | notting, rvokal |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-10-02 19:03:25 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: | 521669 |
Description
Yulia Kopkova
2009-09-20 18:46:35 UTC
Not sure if "4" and "5" are possible to implement. (In reply to comment #0) > According to https://fedoraproject.org/wiki/FCNewInit/Initscripts dumpconf init > script have some LSB-compilant problems: > > 1. LSB Header not complete It's not required; adding dependencies here would break the world. > 2. status action should return code "3" for stopped service > # service netfs stop > # service netfs status ; echo $? > now: 2 > expected: 3 Fixed. > 3. insufficient rights, there should be return code 4 > # su testuserqa -c "service netfs restart"; echo $? > now: 0 > expected: 4 Fixed. > 4. if netfs is dead and /var/lock/subsys/netfs lock file exists then > status action should return code "2". As stated in comment #1, not possible. > 5. netfs init script should also support, "condrestart", "try-restart" and > "force-reload" actions. Generally, not a good idea for network mounts. (Arguably, it shouldn't even support restart.) > 6. nonexist action should have return code 3 and usage info: > # service netfs nonexist ; echo $? > now: 1 > expected: 3 Fixed. http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=7e8a81407d12d2b92f20de240d2a6c928ab41d8a 3. insufficient rights, there should be return code 4 It returns correct code "4" for "start" and "stop" actions, but "restart" still return "0". Bill, I'm really sorry for more work, but after some discussions it's agreed in QE that: 6. nonexist action should have return code 3 and usage info: # service netfs nonexist ; echo $? now: 3 expected: 2 Thank you. I've tried fixes and it's ok. |