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! |
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... |
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 |
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. |