JÃrg Billeter wrote:
I think it's great to get LSB compatible bootscripts into LFS. BTW:
system init scripts don't need to follow LSB conventions, but I also
like to be consistent throughout the whole system.

That's right, so my goal would be to provide LSB compliant scripts for every *LFS package, and to provide a manual for writing custom scripts.


I worked around that to provide debian-style output as it's very bad not
to see what's going on. For example see [1]

I agree, that was the reason for mentioning it.
However I must say I don't like calling the log_*_msg functions without clear arguments looks a bit like an ugly hack to me. Another implementation of the init=functions file may ignore all output, and only print the results of log_*_msg to stdout. Your scripts would only print some dots, in those cases.
Yet another implementation might append the output of log_*_msg calls to a (system) logfile. This has the same result.


I've written a rc script [2] to handle init script dependencies on the
fly without any symlinks at all. I don't say that's the right way but
it's shown to be very convenient.

I'm sorry to have to disagree on this subject. The LSB specification states that init.d scripts should be in /etc/init.d, even if they are not actually "installed" into active service. I believe this implies that not all /etc/init.d scripts should be called, and that there should be some kind of mechanism that which scripts are actually called, and when.
The directories with symbolic links look like a plan to me, but I have also been thinking of a set of configuration files, e.g.:


$ cat /etc/rc.d/rc.sysinit
start   mountkernfs
start   udev
start   swap
start   $local_fs
...
$ cat /etc/rc.d/rc.1
stop    $network
...
$

This might be a nice solution, since it will be quite easy to add some lines in the right places once a script is installed, it is easy to maintain, it is clear, and it can be commented. I'll try to make a test case.

My package init scripts are all linked from the respective paldo package
page, feel free to have a look and comment on them. The system scripts
can be found in the boot-scripts package [3].

Thank you, I'll have a look at them this weekend. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page

Reply via email to