Services and Runlevels

With the runlevel resource you can set the default runlevel and specify in detail which system services you want to be started in which run-level.

The default property specifies the default runlevel of the system. Changes to the default runlevel will take effect the next time you boot the system. After the installation is completed, the system runs in runlevel 5, which is full multiuser with network and XDM. If you have configured a system with no X11, it is recommended to reboot the system after stage 1, using the reboot property in the general resource.

Specify in which runlevels a service should run via a space separated list of the runlevels, as shown in the following example. Alternatively change the status of the service by either enabling or disabling it using the service_status property.

Example 4.18.  Run-level Configuration


....
  <runlevel>
   <default>3</default>
   <services config:type="list" >   
    <service>
     <service_name>at</service_name>
     <service_start>3 5</service_start>  
    </service>
    <service>
     <service_name>portmap</service_name>
     <service_status>enable</service_status>    
    </service>
    <service>
     <service_name>hwscan</service_name>
     <service_status>disable</service_status>    
    </service>
   </services>
  </runlevel>
....