Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34901 - need vs use, startup and shutdown
Summary: need vs use, startup and shutdown
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux rc-script Guide (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-02 09:37 UTC by Toby Dickenson
Modified: 2003-12-20 10:55 UTC (History)
1 user (show)

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 Toby Dickenson 2003-12-02 09:37:00 UTC
http://www.gentoo.org/doc/en/rc-scripts.xml explains that 'need' is a strong dependency between services, and that 'use' is a weak dependency that will affect the order in which services are started if they are added to the same run level.

Today I was suprised to discover that 'use' does not affect the order in which services get *shut* *down*. 'need' does affect shutdown order, but this is not explicitly mentioned in the guide either. I think it would be useful if it did.
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2003-12-03 07:23:01 UTC
I'm currently rewriting the Init-specific parts, so I'll handle this one.
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2003-12-20 10:55:24 UTC
The part on USE flags in the second part of the handbook states:

"""
Note: Only the services that need the given service are stopped or restarted. The other depending services (those that use the service but don't need it) are left untouched. 
"""

This is when "/etc/init.d/<service> stop|restart" is being discussed.