Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-20-2004, 09:24 AM   #1
Registered: May 2004
Posts: 32

Rep: Reputation: 15
starting/stopping a service from terminal

Hi guys,

continuing with my desire to do everything from the terminal I would like to know how to start and stop services from the terminal without actually going into the red hat GUI. got a starters book for this sort of thing but can't seem to find that.. may be a bit too advanced for the book :-)

Any help would be great.

Old 05-20-2004, 09:59 AM   #2
LQ Newbie
Registered: Mar 2004
Location: Ohio
Distribution: RedHat / SuSe
Posts: 9

Rep: Reputation: 0
I believe what you are looking for is

/etc/rc.d/init.d/'Name of Service" stop/start/restart

Of course this is for RedHat

Just go take a look in the /etc/rc.d/init.d directory for the services that can be restarted that way
Old 05-20-2004, 10:09 AM   #3
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Also, look into chkconfig For example....

chkconfig --level 3 crond off
That will turn crond off for level 3. To hit more than one level, use this...
chkconfig --level 12345 crond off

More info with man chkconfig

Also, in Redhat you can shortcut with something like this....
service iptables stop
Old 05-20-2004, 10:39 AM   #4
Registered: Feb 2004
Posts: 307

Rep: Reputation: 30
On Slackware I know it's /etc/init.d, not /etc/rc.d/init.d.

You can also use "top" in the terminal, works a lot like KSysGuard does.
Old 05-20-2004, 10:42 AM   #5
LQ Newbie
Registered: Mar 2004
Distribution: mandrake 9.0
Posts: 29

Rep: Reputation: 15
mandrake is the same as redhat.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
NAMED Service Not Stopping dsschanze Linux - Networking 3 08-06-2007 05:03 AM
Stopping exim service ginnotech Debian 2 11-03-2004 09:41 AM
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 06:39 PM
Stopping X from starting KennyK Linux - Software 4 06-03-2003 08:12 PM
Stopping a startup service MrJoshua Linux - General 1 05-15-2002 02:03 PM > Forums > Linux Forums > Linux - Software

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

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