LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-20-2004, 09:24 AM   #1
samills70
Member
 
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.

Thanks
 
Old 05-20-2004, 09:59 AM   #2
ITTOscar
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
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
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
Aeiri
Member
 
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
markehb
LQ Newbie
 
Registered: Mar 2004
Distribution: mandrake 9.0
Posts: 29

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


Reply


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


All times are GMT -5. The time now is 09:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration