Como especificar a dependência do daemon em outro daemon

7

em /etc/init.d/

primeiro daemon

# Provides:          first
# Required-Start:    $remote_fs $syslog

segundo daemon

# Provides:          second
# Required-Start:    $remote_fs $syslog first

Está no Debian a maneira correta de especificar a dependência do segundo daemon quando o primeiro é lançado antes?

    
por user2080741 26.06.2013 / 18:14

1 resposta

3

Sim. Seu exemplo está correto. O Debian tem documentação sobre isso em link

Provides: boot_facility_1 [boot_facility_2...]

defines boot facilities provided by this init script such that when the script is run with the start argument, the specified boot facilities will be deemed present and hence other init scripts which require those boot facilities must be started at a later stage. Normally you should use the script name as boot facility (without .sh if the file name has such an ending) but one can in the exceptional case also use the name of the service(s) that the script replaces. Boot facilities provided by scripts must not start with '$'. (Virtual facility names listed below are defined outside the init.d scripts.) Facility names should be unique within the distribution, to avoid 'duplicate provides' errors when a package is installed.

 

Required-Start: boot_facility_1 [boot_facility_2...]

defines facilities that must be available to start the script. Consider using virtual facility names as described below if adequate. If no boot facility is specified it means that this script can be started just after the bootstrap without local filesystems mounted, nor system logger, etc.

    
por 22.12.2013 / 07:30