Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 46314 Details for
Bug 70009
$CRITICAL_SERVICES should be able to handle dependencies
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
rc-services.patch
rc-services.patch (text/plain), 1.33 KB, created by
Paul Pacheco
on 2004-12-18 18:00:49 UTC
(
hide
)
Description:
rc-services.patch
Filename:
MIME Type:
Creator:
Paul Pacheco
Created:
2004-12-18 18:00:49 UTC
Size:
1.33 KB
patch
obsolete
>--- /lib/rcscripts/sh/rc-services.sh.orig 2004-12-04 13:34:53.000000000 -0600 >+++ /lib/rcscripts/sh/rc-services.sh 2004-12-18 22:45:54.714489464 -0600 >@@ -764,6 +764,51 @@ > return 0 > } > >+# string sort_services(services) >+# >+# Sort the services by dependencies. If b depends on a, then a >+# appears before b in the resulting list. It also >+# adds required dependencies to the result >+# >+sort_services() { >+ local -a unsorted=("$@") >+ local -a sorted=() >+ local service >+ >+ while (( ${#unsorted} > 0 )) >+ do >+ # get a service from the list and remove it >+ service=${unsorted[0]}; >+ unsorted=(${unsorted[@]#$service}) >+ >+ # services that should start before $service >+ if is_runlevel_start >+ then >+ startupservices="$(ineed "${service}") \ >+ $(valid_iuse "${service}") \ >+ $(valid_iafter "${service}")" >+ else >+ startupservices="$(ineed "${service}") \ >+ $(valid_iuse "${service}")" >+ fi >+ >+ >+ # remove each one of those from the sorted list >+ # and add them all to the unsorted so we analyze them later >+ >+ for dependency in $startupservices >+ do >+ sorted=(${sorted[@]#$dependency}) >+ unsorted=(${unsorted[@]#$dependency} $dependency) >+ done >+ >+ sorted=($service ${sorted[@]}) >+ done >+ >+ echo ${sorted[@]} >+} >+ >+ > # bool query_before(service1, service2) > # > # Return true if 'service2' should be started *before*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 70009
:
46310
| 46314 |
46343