SURVIVOR: init.d Fix Module
About init.d
basics
Module Type Scheduler Remote
fix No Yes
syntax
     module init.d {
       service <string>
       [service ...]
       [stop <boolean>]
       [order <string>]
     }
     via <transport>
 

Dependencies

  • None

Arguments

Name Type Value
service string list The names of the init.d scripts to run.
stop optional boolean, default is yes Whether to try stopping the service(s) before starting.
order optional string, one of "fifo" or "filo", default is "fifo" If more than one service is provided, and stop is true, the order to execute the scripts in when starting, as compared to stopping.

Description

The init.d module runs scripts under /etc/init.d in an attempt to restart failed services. The module can optionally try stopping the service before restarting, and can run multiple scripts in series.

Examples

  1. In this example, /etc/init.d/syslogd start will be run when this fix is executed:
         module init.d {
           service  syslogd
           stop     no
         }
         
  2. In this example, the sequence run will be
    1. /etc/init.d/init.d1 stop
    2. /etc/init.d/init.d2 stop
    3. /etc/init.d/init.d2 start
    4. /etc/init.d/init.d1 start
         module init.d {
           service  init.d1
           service  init.d2
           order    filo
         }
         

$Date: 2006/11/19 22:39:20 $
$Revision: 0.5 $
keywords
order
service
stop