Start, Stop, Restart Linux Services


tux

Starting, stopping, and restarting services varies depending on the distro to some degree But the general concept is the same.

One way to list the services is to run “ls” on the “init.d” directory.
# ls /etc/init.d

I will use “restart” for the examples but this can be replaced with “start” or “stop”. And because the networking service is a fairly common service to restart I will also use that in the following examples. Also, depending on disto and user rights “sudo” may be required.

Ubuntu/debian
# sudo /etc/init.d/networking restart

Redhat
# service network restart
or
# /etc/init.d/network restart





You can leave a response, or trackback from your own site.


Further Reading
    None Found




Leave a Reply

Anti-Spam Quiz:

Twitter Delicious Facebook Digg Stumbleupon Favorites More
336 queries in 2.654 seconds.