LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-02-2005, 11:30 AM   #1
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Rep: Reputation: 31
CLI....start/stop processes


On command line, what is the command for starting and stopping processes....sort of like how I do in GNOME with Services. I know I could go to top and stop it that way but I thought there was a way of starting and stopping through command line.
 
Old 03-02-2005, 11:34 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,430

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
Typical command structure:
service service_name start
service service_name stop

To see services:
chkconfig --list
 
Old 03-02-2005, 11:46 AM   #3
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Original Poster
Rep: Reputation: 31
Says those commands aren't found....all of em, even chkconfig
 
Old 03-02-2005, 12:03 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,430

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
You need to be logged in as root. If using su then use su - instead. su - will use root's path environment.
 
Old 03-02-2005, 12:37 PM   #5
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Original Poster
Rep: Reputation: 31
I did su and it still didn't work. I'm away from my Linux box now, but I'll check it when I get back.
 
Old 03-02-2005, 03:02 PM   #6
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Original Poster
Rep: Reputation: 31
It works....only as root though. su won't do it for me. Thanks.

Also while I am at it, this is somewhat similar....doing it that way may be tedious to start/stop what needs it....is there like a config file or some command I could use where I can select only what programs I want to start/stop on startup. Can I do it with chkconfig?
 
Old 03-16-2005, 08:16 AM   #7
D.kok
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Rep: Reputation: 0
Hi Basslord,
U can use chkconfig --level to configure this. Do a man chkconfig. F.i.:
chkconfig --level 2345 sambad off
to stop the samba-deamons from starting up at boottime in runlevels 2,3,4 and 5.
HTH
Donald
 
  


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
How do I add start and stop commands to systems startup and shutdown processes? mlsbraves Slackware 1 11-25-2004 08:04 AM
Are there suppose to be MySQL processes that don't stop? linuxboy69 Linux - Software 0 09-10-2004 05:12 PM
How do i view processes and stop them? rid00z Linux - General 2 02-10-2004 05:30 PM
how to stop processes in linux adhiraj Linux - General 1 02-01-2004 12:51 PM
How to stop those nasty processes sridharinfinity Linux - Distributions 2 06-12-2003 07:19 PM

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

All times are GMT -5. The time now is 07:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration