LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-09-2004, 10:12 PM   #1
Adony
Member
 
Registered: Apr 2004
Location: Portugal
Distribution: Gentoo 2004.2 - working on LFS 6
Posts: 126

Rep: Reputation: 15
Gentoo: start / stop services


Hi there!

To see the status of my services i just do
#rc-status -a

That's ok ...
But if i want to add a service, lets say foo to a runlevel; who can i do this??

And also if i want to start foo just this time and the stop it when i no longer need it how can i do that??

Thanks in advance!
 
Old 12-10-2004, 12:29 AM   #2
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
rc-update add <service> <runlevel> example:

Code:
rc-update add cups default
That will add cups to the default runlevel.

That help?

 
Old 12-10-2004, 02:09 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
To see the status of my services i just do
#rc-status -a
why did I not nkow this?? cool!
 
Old 12-10-2004, 06:43 AM   #4
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Quote:
Originally posted by acid_kewpie
why did I not nkow this?? cool!
There seems to be a lot of things in Gentoo that are so cool but seldom known. I'm with you on that one. I didn't know that one either. That is way better than doing /etc/init.d/<service> status for each individual one too. That is especially true when you have at least 70 like on mine. That could take a while.

Learn something new everyday, I usually forget a couple too.

Later

 
Old 12-10-2004, 08:56 AM   #5
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
An easy one for me to remember rc-update show.
 
Old 12-10-2004, 09:39 AM   #6
Adony
Member
 
Registered: Apr 2004
Location: Portugal
Distribution: Gentoo 2004.2 - working on LFS 6
Posts: 126

Original Poster
Rep: Reputation: 15
Thanks a lot !

I am glad that i have given some "knowledge" back
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO Check, Start and Stop Services GNewbie MEPIS 9 08-22-2012 10:09 PM
stop and start services hoover93 SUSE / openSUSE 5 12-29-2004 02:48 PM
Start and stop services in SUSE - using shell UltimaGuy Linux - Newbie 3 02-16-2004 10:13 PM
start and stop services log Linux - General 7 03-21-2003 08:29 PM
Start Stop Restart Services Sifvion Slackware 6 09-14-2002 03:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration