Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rc-update?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
myles
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jan 2005
Posts: 83

PostPosted: Fri Jan 28, 2005 5:55 am    Post subject: rc-update? Reply with quote

Can someone give me an example of when they would use rc-update?
Back to top
View user's profile Send private message
brims
Guru
Guru


Joined: 19 Apr 2004
Posts: 492
Location: Arizona

PostPosted: Fri Jan 28, 2005 6:13 am    Post subject: Reply with quote

rc-update add sshd default Having sshd start when the computer starts.
Back to top
View user's profile Send private message
tuxamd
Apprentice
Apprentice


Joined: 28 Jan 2005
Posts: 281

PostPosted: Fri Jan 28, 2005 8:48 am    Post subject: Reply with quote

You can also do rc-update del netmount boot (netmount=example) to remove certain deamons from starting. Use with caution though. And do rc-status --all to see everything that you have and it's runlevel.
Back to top
View user's profile Send private message
Arainach
l33t
l33t


Joined: 08 Jul 2004
Posts: 609

PostPosted: Fri Jan 28, 2005 12:45 pm    Post subject: Reply with quote

It's used whenever editing what services start with the computer.
_________________
Gentoo: Stage3 w/ NPTL & udev, gcc 3.4.4 full rebuild
Kernel: 2.6.15-gentoo-r1 w/ 1G-Lowmem Patch
System: Athlon XP 2.2Ghz/1GB Corsair Value/160GB, 250GB WD IDE/128MB GeForce 6800/Sony 17" Trinitron G200 @ 1280x1024x75Hz
Back to top
View user's profile Send private message
LeTene
Guru
Guru


Joined: 02 Mar 2004
Posts: 348
Location: Ah'll glass ye!

PostPosted: Fri Jan 28, 2005 12:50 pm    Post subject: Reply with quote

Type in rc-status --all at a console to see a list of currently installed services you could potentially add with rc-update.
_________________
Docs, Tips & Tricks at the Gentoo Wiki page.
Back to top
View user's profile Send private message
myles
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jan 2005
Posts: 83

PostPosted: Fri Jan 28, 2005 8:38 pm    Post subject: Reply with quote

I removed metalog and use syslog-ng instead, and I removed metalog from starting up using ''rc-update del metalog", but when I try adding syslog-ng i get:

Code:

rc-update add syslog-ng boot
 * syslog-ng added to runlevel boot
 * Caching service dependencies...
 *  Service 'metalog' already provide 'logger'!;
 *  Not adding service 'syslog-ng'...
 * rc-update complete.


How do I get syslog-ng to replace metalog?
Back to top
View user's profile Send private message
bet1m
l33t
l33t


Joined: 04 Dec 2004
Posts: 631
Location: Kosova/Prishtine

PostPosted: Fri Jan 28, 2005 8:55 pm    Post subject: Reply with quote

emerge syslog-ng
rc-update syslog-ng default
rc-update del metalog boot
_________________
#370559
Back to top
View user's profile Send private message
myles
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jan 2005
Posts: 83

PostPosted: Fri Jan 28, 2005 10:34 pm    Post subject: Reply with quote

bet1m wrote:
rc-update syslog-ng default


That dosen't do anything unless, I suppose, you put add in front of rc-update?
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2937
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Fri Jan 28, 2005 11:20 pm    Post subject: Reply with quote

rc-update update your init scripts, it means when you execute rc-update you can choose whether you want to have scripts that are executed ny booting or not. It depends on what you are wanting to do. There are a lot of examples, when you need it, i.e.starting apache or mail services (postifx, etc) ...

Why do you ask a such thing? What don't you understand?
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
myles
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jan 2005
Posts: 83

PostPosted: Fri Jan 28, 2005 11:29 pm    Post subject: Reply with quote

pablo_supertux wrote:


Why do you ask a such thing? What don't you understand?


Sorry, I understand now, but a few post above I butted in a question about syslog-nd in regard to using rc-update. Nevermind then.
Back to top
View user's profile Send private message
taipan67
l33t
l33t


Joined: 04 Dec 2004
Posts: 866
Location: England (i'm told...)

PostPosted: Fri Jan 28, 2005 11:43 pm    Post subject: Reply with quote

myles wrote:
I removed metalog and use syslog-ng instead, and I removed metalog from starting up using ''rc-update del metalog", but when I try adding syslog-ng i get:

Code:

rc-update add syslog-ng boot
 * syslog-ng added to runlevel boot
 * Caching service dependencies...
 *  Service 'metalog' already provide 'logger'!;
 *  Not adding service 'syslog-ng'...
 * rc-update complete.


How do I get syslog-ng to replace metalog?

rc-update is used to add or delete any of the scripts in the /etc/init.d/ directory to any of the runlevels in the /etc/runlevels/ directory.

Judging from your code-snippet, you will need to check which runlevel 'metalog' is in, delete it, then add syslog-ng to the runlevel you want.
Code:
rc-update del metalog <runlevel>
rc-update add syslog-ng <runlevel>

...replacing <runlevel> appropriately.

If you still get the error message about an existing logger, you might have to stop 'metalog' as well, by entering
Code:
/etc/init.d/metalog stop

_________________
"Anyone who goes to see a psychiatrist should have their head examined!"
Back to top
View user's profile Send private message
psyqil
Advocate
Advocate


Joined: 26 May 2003
Posts: 2767

PostPosted: Fri Jan 28, 2005 11:47 pm    Post subject: Reply with quote

Portage doesn't delete stuff in /etc, so you're looking for
Code:
rm /etc/init.d/metalog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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