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.
|
Typical command structure:
service service_name start service service_name stop To see services: chkconfig --list |
Says those commands aren't found....all of em, even chkconfig
|
You need to be logged in as root. If using su then use su - instead. su - will use root's path environment.
|
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.
|
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? |
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. |