Ubuntu / Debian Linux: Services Configuration Tool to Start / Stop System Services

November 9, 2010 by: upa_kid



Your Debian / Ubuntu Linux box security depends upon access to system services (one of many aspects). For example, you may need to provide a web server (Apache service) to serve web pages. However, if you do not need use a service, you should always turn off all unused services to avoid exploits.

Traditionally, Debian provided various tools to manage services. There are various methods for managing access to system services:
a) /etc/init.d/service
b) rcconf
c) update-rc.d etc

Under Red hat and Centos Linux you can use chkconfig command (ntsysv command) to configure Sys V style init script links. There is also service command to stop / start / restart services.

So if you are addicted to the service command under RHEL / CentOS / Mandriva Linux and have wondered what to do in Debian / Ubuntu, Linux try sysvconfig package.
sysvconfig – Services Startup Configuration Tool

Debian and Ubuntu Linux also offers service command. It can be used to execute System V style init script stored at /etc/init.d/service-name { start|stop|restart|action }. This is good if you grown up with Red hat. This tool is equivalent to update-rc.d and invoke-rc.d (rcconf and others).
sysvconfig package

First, install sysvconfig package:
$ sudo apt-get install sysvconfig

To start / restart / stop service, use the following syntax:
$ sudo service {service-name} restart <– Restart service
$ sudo service {service-name} stop <– Stop service
$ sudo service {service-name} start Read the man pages for sysvconfig and service command.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
Have you found this script useful? Please support author by PayPal donation.

Comments

2 Responses to “Ubuntu / Debian Linux: Services Configuration Tool to Start / Stop System Services”
  1. Josh says:

    This is a great blog. Im glad I stumbled onto it. Have a good day mate!

  2. Hi I found this site by mistake when i was searching bing for this issue, I must say your site is really helpful I also love the design, its amazing!. I don’t have the time at the moment to fully read your site but I have bookmarked your site and also add your RSS feeds. I will be back in a day or two. thanks for a great site.

Leave a Reply