Bug 524489
| Summary: | network 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-09-29 15:49:56 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 19:24:40 UTC
(In reply to comment #0) > 1. LSB Header not complete Not required -> WONTFIX. > 2. "start" action for already started service should not fail > now: 1 > expected: 0 Impractical to fix. > 3. status action should return code "3" for stopped service > # service network stop > # service network status ; echo $? > now: 0 > expected: 3 Breaks historical precedent; not sure it's worth it. > 3. insufficient rights, there should be return code 4 > # su testuserqa -c "service network restart"; echo $? > now: 0 > expected: 4 Added. > 4. if network is dead and /var/lock/subsys/network lock file exists then > status action should return code "2". Not sensible for this script. > 5. network init script should also support, "condrestart", "try-restart" and > "force-reload" actions. condrestart/try-restart are optional, and not practical here. force-reload added. > 6. nonexist action should have return code 3 and usage info: > # service network nonexist ; echo $? > now: 1 > expected: 3 Fixed. http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=281379a74c4a22c8c79cd62a90b07867bd9ccbdb Bill, can you please also fix
6. nonexist action should have return code 3 and usage info:
# service network nonexist ; echo $?
now: 3
expected: 2
Sorry for that.
3. insufficient rights, there should be return code 4 It returns correct code "4" for "start" and "stop" actions, but "restart" still return "0". Fixed. |