LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   CLI....start/stop processes (https://www.linuxquestions.org/questions/fedora-35/cli-start-stop-processes-296717/)

Basslord1124 03-02-2005 10:30 AM

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.

michaelk 03-02-2005 10:34 AM

Typical command structure:
service service_name start
service service_name stop

To see services:
chkconfig --list

Basslord1124 03-02-2005 10:46 AM

Says those commands aren't found....all of em, even chkconfig

michaelk 03-02-2005 11:03 AM

You need to be logged in as root. If using su then use su - instead. su - will use root's path environment.

Basslord1124 03-02-2005 11:37 AM

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.

Basslord1124 03-02-2005 02:02 PM

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?

D.kok 03-16-2005 07:16 AM

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


All times are GMT -5. The time now is 10:54 PM.