Saturday, September 4, 2010

Configuring Services from the Command Line

The GUI applications work well when you have a GUI, but are not ideal for remote system administrating or for managing the Ubuntu Server installation
(which lacks a GUI). Usually administrators need to use the command line to create, delete, or rename links in the /etc/rc*.d/ directories in order to
modify system services. However, there is an alternative. The sysv-rc-conf tool offers a middle ground by allowing easy access to the boot services
without requiring manual modification of the different startup files found in /etc/init.d/ and /etc/rc*.d/.

sudo apt-get install sysv-rc-conf

Running this tool (sudo sysv-rc-conf) brings up a text list of all services and runlevels (see Figure 3-4). Using this tool, you can immediately start or stop services by pressing + or -, and spacebar enables or disables the service in specific runlevels. The tool also supports the mouse; clicking a check box enables or disables the service.

As with the default Services applet, selecting or clearing a service will immediately change the service’s running status and alter the service’s boot-up configuration.

The sysv-rc-conf tool only recognizes services in the /etc/rc*.d/ and /etc/init.d/ directories. It is not Upstart aware. Upstart scripts for cron, hal, bootclean and other services do contain scripts in /etc/init.d/, but they are listed by sysv-rc-conf as not being used in any runlevel.

Source of Information : Wiley Ubuntu Powerful Hacks And Customizations

No comments: