Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 33054 Details for
Bug 34140
sys-apps/baselayout: rc-status script addition - servicelist
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
rc-status-mk5.patch
rc-status-mk5.patch (text/plain), 2.40 KB, created by
Eldad Zack (RETIRED)
on 2004-06-10 14:37:41 UTC
(
hide
)
Description:
rc-status-mk5.patch
Filename:
MIME Type:
Creator:
Eldad Zack (RETIRED)
Created:
2004-06-10 14:37:41 UTC
Size:
2.40 KB
patch
obsolete
>--- /bin/rc-status 2004-06-07 09:45:11.000000000 +0300 >+++ rc-status 2004-06-11 00:33:28.329746296 +0300 >@@ -15,6 +15,7 @@ > # -a can be used to display all runlevels # > # -d can be used to display service dependancies # > # -u will display all unassigned services # >+# -s will display all services # > # -h will display help # > # <runlevel> is used to choose the run level for which information is # > # displayed # >@@ -51,12 +52,17 @@ > ls -1 ${runleveldir} > exit 0 > ;; >+ --servicelist|-s) >+ ALL=true >+ SERVICELIST=true >+ ;; > --help|-h|-*) >- echo "USAGE: $0 [--all | --list | --unused | <runlevel>]" >- echo " --all -a Show services at all run levels" >- echo " --list -l Show list of run levels" >- echo " --unused -u Show services not assigned to any run level" >- echo " <runlevel> Show services assigned to <runlevel>" >+ echo "USAGE: $0 [--all | --list | --unused | --servicelist | <runlevel>]" >+ echo " --all -a Show services at all run levels" >+ echo " --list -l Show list of run levels" >+ echo " --unused -u Show services not assigned to any run level" >+ echo " --servicelist -s Show service list" >+ echo " <runlevel> Show services assigned to <runlevel>" > echo "If no arguments are supplied, shows services for current run level." > exit 0 > ;; >@@ -130,13 +136,16 @@ > } > if [ -n "${ALL}" ] ; then > unassigned= >+ allservices= > for service in `ls -1 /etc/init.d | grep -v '\.sh$'` ; do > if [ $(in_list "${runlevels[*]}" "${service}") -eq 0 ] ; then > unassigned="${unassigned} ${service}" > fi >+ allservices="${allservices} ${service}" > done > runlevelidxs="${runlevelidxs} UNASSIGNED" > runlevels[${arridx}]="${unassigned}" >+ runlevels[${arridx}+1]="${allservices}" > fi > > ################################################################################ >@@ -162,7 +171,12 @@ > # if --all wasnt specified, dont print everything > [ -z "${ALL}" ] && runlevelidxs="${runlevel}" > if [ -z "${UNUSED}" ] ; then >- arridx=0 >+ if [ -z "${SERVICELIST}" ] ; then >+ arridx=0 >+ else >+ runlevelidxs="all" >+ let "arridx += 1" >+ fi > else > runlevelidxs="unused" > fi
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 34140
:
21101
|
21104
|
21130
|
21207
| 33054