2/17/2009

How to configure system server on Ubuntu 8.10

On ubuntu, runlevel 2 is default. You can configure Linux Startup Applications with sysv-rc-conf.Sysv-rc-conf is Run level configurator (front-end) for init.d scripts, Let us install it firstly.


sudo apt-get install sysv-rc-conf

then, setup your needed services, for example httpd(see "ZendCore and mysql config in Ubuntu 8.10")

The following list is common service
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 <-- Start service

For example to stop apache service, enter:

$ sudo service httpd stop

No comments: