View previous topic :: View next topic |
Author |
Message |
myles Tux's lil' helper
Joined: 25 Jan 2005 Posts: 83
|
Posted: Fri Jan 28, 2005 5:55 am Post subject: rc-update? |
|
|
Can someone give me an example of when they would use rc-update? |
|
Back to top |
|
|
brims Guru
Joined: 19 Apr 2004 Posts: 492 Location: Arizona
|
Posted: Fri Jan 28, 2005 6:13 am Post subject: |
|
|
rc-update add sshd default Having sshd start when the computer starts. |
|
Back to top |
|
|
tuxamd Apprentice
Joined: 28 Jan 2005 Posts: 281
|
Posted: Fri Jan 28, 2005 8:48 am Post subject: |
|
|
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 |
|
|
Arainach l33t
Joined: 08 Jul 2004 Posts: 609
|
Posted: Fri Jan 28, 2005 12:45 pm Post subject: |
|
|
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 |
|
|
LeTene Guru
Joined: 02 Mar 2004 Posts: 348 Location: Ah'll glass ye!
|
Posted: Fri Jan 28, 2005 12:50 pm Post subject: |
|
|
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 |
|
|
myles Tux's lil' helper
Joined: 25 Jan 2005 Posts: 83
|
Posted: Fri Jan 28, 2005 8:38 pm Post subject: |
|
|
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 |
|
|
bet1m l33t
Joined: 04 Dec 2004 Posts: 631 Location: Kosova/Prishtine
|
Posted: Fri Jan 28, 2005 8:55 pm Post subject: |
|
|
emerge syslog-ng
rc-update syslog-ng default
rc-update del metalog boot _________________ #370559 |
|
Back to top |
|
|
myles Tux's lil' helper
Joined: 25 Jan 2005 Posts: 83
|
Posted: Fri Jan 28, 2005 10:34 pm Post subject: |
|
|
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 |
|
|
pablo_supertux Advocate
Joined: 25 Jan 2004 Posts: 2937 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Fri Jan 28, 2005 11:20 pm Post subject: |
|
|
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 |
|
|
myles Tux's lil' helper
Joined: 25 Jan 2005 Posts: 83
|
Posted: Fri Jan 28, 2005 11:29 pm Post subject: |
|
|
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 |
|
|
taipan67 l33t
Joined: 04 Dec 2004 Posts: 866 Location: England (i'm told...)
|
Posted: Fri Jan 28, 2005 11:43 pm Post subject: |
|
|
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 |
|
|
psyqil Advocate
Joined: 26 May 2003 Posts: 2767
|
Posted: Fri Jan 28, 2005 11:47 pm Post subject: |
|
|
Portage doesn't delete stuff in /etc, so you're looking for Code: | rm /etc/init.d/metalog |
|
|
Back to top |
|
|
|