Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83352 - net_service() in rc-services.sh always returns true
Summary: net_service() in rc-services.sh always returns true
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-02-25 23:58 UTC by Matthew Stapleton
Modified: 2005-06-03 06:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Stapleton 2005-02-25 23:58:24 UTC
net_service() in rc-services.sh always returns 0 instead of returning 1 when a service isn't a service controlling a network interface.
This results in services that don't depend on LOGGER_SERVICE being shutdown before LOGGER_SERVICE during a reboot/shutdown even though they don't have to.

Reproducible: Always
Steps to Reproduce:
1. reboot or shutdown the system


Actual Results:  
clamd, famd, and portmap are shutdown before syslog-ng 

Expected Results:  
Since these services don't depend on logger, syslog-ng should have shutdown 
before clamd, famd, and portmap  

I have tested this with sys-apps/baselayout-1.9.4-r6 and   
sys-apps/baselayout-1.11.9-r1 and both have the problem
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-03-02 15:04:18 UTC
net_service() now returns 1 correctly for non-net services.

You have another bug open for correct shutdown/reboot order so I'll address that issue there.

Will be in baselayout-1.11.10
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-06-03 06:26:03 UTC
Which has been out for ages - bug closed!
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-06-03 06:26:29 UTC
(forgot to mark fixed - silly me)