LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-24-2005, 09:25 AM   #1
neocookie
Member
 
Registered: Apr 2004
Location: Leeds, UK
Distribution: FC1, FC2, Debian
Posts: 308

Rep: Reputation: 30
How do I add/remove/manage services from the CLI?


Hi all

Just a quick one - how do I manage services from the comand line? I need to add apache to the start-up services, but I can't seem to find anything on Google to help me out.

Thanks!
 
Old 11-24-2005, 09:58 AM   #2
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 296

Rep: Reputation: 31
chkconfig httpd on

will switch it on at next boot

service httpd (start stop reload ) etc will manage the service

chkconfig -- list | grep <service>

list runlevles service is activeated in


man chkconfig

man service
 
Old 11-24-2005, 09:59 AM   #3
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
If it is as in Mandriva:

Start:
service httpd start

Stop:
service httpd stop

Restart:
service httpd restart

Enable at boot:
chkconfig --add httpd

Disable at boot:
chkconfig --del httpd

See current boot config:
chkconfig --list httpd

See current overall config:
chkconfig --list

Yves.
 
Old 11-24-2005, 10:01 AM   #4
neocookie
Member
 
Registered: Apr 2004
Location: Leeds, UK
Distribution: FC1, FC2, Debian
Posts: 308

Original Poster
Rep: Reputation: 30
Wonderful. This forum is *much* better than google for linux-related questions!
 
  


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
Manage services seriesx4 Ubuntu 1 11-06-2005 09:04 AM
howto identify what services are running via CLI? Lleb_KCir Linux - General 3 09-21-2004 11:44 PM
kolab: manage coexistence with other services Clemente Linux - Software 0 02-11-2004 09:59 AM
Cant add MySQL through add/remove programs Hero Doug Fedora 6 01-03-2004 10:35 PM
RH9, How to add another IP Address in CLI praefex Linux - Networking 3 11-19-2003 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:46 AM.

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