LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-27-2009, 03:24 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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
Code:
### BEGIN INIT INFO
# 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.
### END INIT INFO
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.

Best

Charles
 
Old 08-18-2009, 02:02 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Init Scripts brazilian_user Linux - General 3 12-05-2006 08:51 AM
what is the scripts in /etc/init.d for? blackzone Linux - General 7 09-06-2006 11:10 PM
init scripts lvgandhi Debian 2 10-11-2005 02:44 AM
New init scripts? xconspirisist Fedora 9 12-09-2004 11:41 AM
Scripts in /etc/rc.d/init.d correro Linux - General 1 03-13-2003 09:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration