View previous topic :: View next topic |
Author |
Message |
Kysen Tux's lil' helper


Joined: 26 Nov 2004 Posts: 128
|
Posted: Mon Feb 08, 2010 6:48 pm Post subject: init.d script descriptions |
|
|
After doing some research, I'm surprised to find no collection of information to describe what each script does in our init.d. While its pretty easy to figure out what some of this stuff does with either a google or man search and of course the stuff we installed ourselves. Still there are some in the list that elude me, and I'm sure other people.
I would like to make a list of all the scripts in /etc/init.d with descriptions of what they do, and the best run level for each one. Before I put any work into this I should ask If anyone knows if this information already exists. If not I think it would be best if we created a list that anyone can refer to. |
|
Back to top |
|
 |
Ant P. Watchman

Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue Feb 09, 2010 1:10 am Post subject: |
|
|
Code: | for i in /etc/init.d/*; do echo $i; $i describe; echo; done |
There's a start. |
|
Back to top |
|
 |
timeBandit Bodhisattva


Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Tue Feb 09, 2010 1:18 am Post subject: |
|
|
Ant_P wrote: | Code: | for i in /etc/init.d/*; do echo $i; $i describe; echo; done |
There's a start. | Do not do this. Not everything in /etc/init.d is an init script, not all scripts respond sensibly to the describe argument and not all scripts are harmless when the above is run as a normal user, let alone as root. Ask me how I know, if you must.
Please be cautious when advising people to run commands on their system. As the saying goes, more or less: Test twice, post once.  _________________ Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others. |
|
Back to top |
|
 |
Ant P. Watchman

Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue Feb 09, 2010 1:30 am Post subject: |
|
|
Whoa, okay! Yeah, some of that output _did_ look a bit odd when I ran it... here's a less stupid version (I hope):
Code: | for i in $(grep -l '#!/sbin/runscript' /etc/init.d/*); do echo $i; $i describe; done |
|
|
Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Feb 09, 2010 3:14 am Post subject: |
|
|
How about this, seems harmless enough: Code: | grep ^description /etc/init.d/* | sort |
|
|
Back to top |
|
 |
ppurka Advocate

Joined: 26 Dec 2004 Posts: 3256
|
Posted: Tue Feb 09, 2010 6:13 am Post subject: |
|
|
Mike Hunt wrote: | How about this, seems harmless enough: Code: | grep ^description /etc/init.d/* | sort |
|  _________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
 |
|