LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   List services (https://www.linuxquestions.org/questions/linux-newbie-8/list-services-328426/)

maginotjr 05-30-2005 12:35 AM

List services
 
Im using Debian and I dont know how to do to list all the services that are running...


when I used Fedora it was more simple, like redhat-service-config (something like that) I have search on debian and didnt find anything...

And after listing the services how can I stop or start a service?
How can I see what services are available in the system?


thanks!

newuser455 05-30-2005 12:56 AM

I have used Fedora 3, RH 9 and RH 7.1 and the command to list all processes was just "ps" (without the qoutes).

Now to stop or start a service... for me it has always been "service servicename restart". However, for Debian I do not know. Try using "path to service restart".

If you want to do it the easy way, you might just want to install webmin (www.webmin.com).

Hope I helped...

heema 05-30-2005 01:47 AM

the services are located in /etc/init.d/

so if you want to stop a service then type :
su
/etc/init.d/servicename stop


if you want to permanently stop it then either type :
su
chmod -x /etc/init.d/ntpdate

or download a program called sysv-rc-conf
su
apt-get install sysv-rc-conf
sysv-rc-conf and uncheck the serrvice

harken 05-30-2005 03:53 AM

If you want to see all the processes running at a certain time, you may use 'ps aux' or 'ps -ALL'. If, instead, you're interested only in the daemons running, use 'netstat -nutap' to see which service is listening on what port and to which address is it binded at the moment.
Then, you may either tweak the /etc/inetd.conf file and/or use the 'update-rc.d' command to add/remove init scritps.


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