Randy McMurchy wrote:
> Please explain further what the difference is, why we want to do it, what 
> impact it has on the book, etc.
>
>   
For now, it will have zero impact on the book as the scripts will be in 
contrib for those who want to use them.  However, in the future, if at 
least the headers are accepted in LFS, we will no longer have to 
maintain a static list of scripts and their startup order.  The script 
order is determined when it is 'activated' based on dependencies listed 
in the script headers.  Take GPM for example:

### BEGIN INIT INFO
# Provides:            gpm
# Required-Start:      $syslog
# Should-Start:        $remote_fs
# Required-Stop:       $syslog
# Should-Stop:         $remote_fs
# Default-Start:       2 3 4 5
# Default-Stop:        0 1 6
# Short-Description:   General Purpose Mouse (service)
# Description:         The gpm service is used to provide mouse services
#                      to console applications.
# X-LFS-Default-Start: S70
# X-LFS-Default-Stop:  K10
# X-LFS-Provided-By:   BLFS
### END INIT INFO

First you install a script to /etc/init.d, then you activate it by using 
the install_initd program.  All of the scripts are reordered to accept 
the new one based on dependency information provided in the LSB header 
of the script.  Vendor provided scripts can also be used verbatim 
instead of our own, and their output format will be the same as the 
scripts that we've written, because the functions are standardized 
(though each Linux distribution will have their own way to format the 
output).

It is explained in detail in the core specification for LSB, however, 
IANA maintains a registered list of provides.  There are a select few 
that use $facility and should be present in all LSB compliant systems.  
Since I've been using the scripts for forever, I do have a good deal of 
them written, those that aren't written yet, will not be difficult to 
get done.  The X-LFS* now serve no purpose and will probably be removed, 
but know that we can add our own X-${DISTRO}-* headers at any time.

-- DJ Lucas

-- 
This message has been scanned for viruses and
dangerous content, and is believed to be clean.

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to