-   Linux - General (
-   -   init scripts, variables in INIT INFO section (

catkin 07-27-2009 03:24 AM

init scripts, variables in INIT INFO section
Hello :)

I want to analyse the dependencies amongst init scripts, this with the larger objective of re-ordering the /etc/rc[S2].d/S* links to maximise parallel processing to speed boot.

How can I find out what the variables in the init scripts' INIT INFO sections resolve to? Example

# Provides:          nfs-common
# Required-Start:    $portmap $time
# Required-Stop:    $time
# Default-Start:    2 3 4 5 S
# Default-Stop:      0 1 6
# Short-Description: NFS support files common to client and server
# Description:      NFS is a popular protocol for file sharing across
#            TCP/IP networks. This service provides various
#                    support functions for NFS mounts.

What do $portmap and $time mean? Presumably there's a file listing all such values and what they are to be replaced by.

AFAIK the INIT INFO sections are not used on ubuntu 8.04, being intended for insserv and YaST (etc. sysv-config?) on other systems using the same init scripts, but they provide helpful dependency information.



catkin 08-18-2009 02:02 PM

The significance of the INIT INFO "variables" (more properly "Facility Names") is described in the Linux Standard Base (LSB) Core Specification

All times are GMT -5. The time now is 12:22 AM.