Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 6847 Details for
Bug 4222
A couple of extra scripts for Gentoo's RC system
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
rc-update patch to list services
rc-update.show.patch (text/plain), 1.20 KB, created by
Max Kalika (RETIRED)
on 2002-12-30 02:14:33 UTC
(
hide
)
Description:
rc-update patch to list services
Filename:
MIME Type:
Creator:
Max Kalika (RETIRED)
Created:
2002-12-30 02:14:33 UTC
Size:
1.20 KB
patch
obsolete
>--- /sbin/rc-update 2002-12-29 20:14:25.000000000 -0800 >+++ /tmp/rc-update 2002-12-30 00:05:26.000000000 -0800 >@@ -14,6 +14,7 @@ > cat << FOO > usage: rc-update add script runlevel2 [runlevel2...] > rc-update del script [runlevel1...] >+ rc-update show [runlevel1...] > > note: > After rc-update executes, the script dependency cache is automatically >@@ -33,6 +34,10 @@ > residing in /etc/init.d is not deleted, just any symlinks in > /etc/runlevels/default and /etc/runlevels wumpus. > >+ rc-update show >+ Show all the available scripts and list at which runlevels they >+ will execute. >+ > FOO > exit 1 > } >@@ -107,6 +112,34 @@ > ewarn "${myscript} not found in runlevel ${x}; skipping" > fi > done >+elif [ "$1" = "show" ] >+then >+ shift >+ if [ $# -eq 0 ] >+ then >+ mylevels="`( cd /etc/runlevels; ls )`" >+ else >+ mylevels="$*" >+ fi >+ myscripts="`( cd /etc/init.d; ls )`" >+ >+ for x in ${myscripts} >+ do >+ if [ "${x%%.sh}" = "${x}" ] >+ then >+ printf "%20s | " ${x:0:19} >+ for y in ${mylevels} >+ do >+ if [ -L /etc/runlevels/${y}/${x} ] >+ then >+ echo -n "${y} " >+ else >+ printf "%${#y}s " " " >+ fi >+ done >+ echo "" >+ fi >+ done > else > usage > exit 1
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 4222
:
1828
|
1829
|
1843
|
1855
|
2738
| 6847 |
8349
|
8350