Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
init.d script descriptions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Kysen
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2004
Posts: 128

PostPosted: Mon Feb 08, 2010 6:48 pm    Post subject: init.d script descriptions Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Tue Feb 09, 2010 1:10 am    Post subject: Reply with quote

Code:
for i in /etc/init.d/*; do echo $i; $i describe; echo; done

There's a start.
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Tue Feb 09, 2010 1:18 am    Post subject: Reply with quote

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. :x

Please be cautious when advising people to run commands on their system. As the saying goes, more or less: Test twice, post once. :wink:
_________________
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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Tue Feb 09, 2010 1:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Feb 09, 2010 3:14 am    Post subject: Reply with quote

How about this, seems harmless enough:
Code:
grep ^description /etc/init.d/* | sort
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Tue Feb 09, 2010 6:13 am    Post subject: Reply with quote

Mike Hunt wrote:
How about this, seems harmless enough:
Code:
grep ^description /etc/init.d/* | sort
:D
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum