Avahi LFS Bootscripts fix
William Immendorf
will.immendorf at gmail.com
Tue May 19 05:59:17 MDT 2009
Hey,
Starting with 0.6.25, Avahi now has a LFS initscript, thanks to me.
(Yes, look in the bootscript itself and you'll see. And also, Avahi
installs it automacilly.) But, there are a few oversights I have made
when I did this (mainly in the Makefile.am):
1. I forgot to put in a sed/cat in the Makefile.am to redict the
bootscript.in file to the bootscript itself. This causes chmod to fail
when it makes the bootscript excuable. I fixed this in the patch with
a 'cat avahi.in > avahi' command (since there was nothing to sed, but
other distros have to do that for Avahi), but Lennhart (the Avahi
creator) did not like it, and asked me to just use plan old 'avahi'
and use that. But, other scripts will plobary have to use the same
order (just 'avahi', no .in), and that is a mess. So, for consity,
this patch uses the command.
2. No symlinks to the bootscript are created. LFS uses symlinks to
keep the initscript in /etc/rc.d/init.d and put symlinks in the
rc{0,1,2,3,4,5,6,sysinit}.d dirs. It would be a hassle to create them
manualy. So, in the patch, I overiden the 'install' produce in the
Makefile.am to create the symlinks automaticly, avoding the need for
manual creation. But, again, Lennhart dissagress, saying that a 'tool'
that is part of any other distro will create them automaticly, but no
such tool exists. Also, he dissagres with our bootscript idea, saying
it's a 'link farm'. What a *expictive deleted* insult to us.
3. In the bootscript itself, (before the patch), I had to call
'avahi-daemon -k' and then eveluate_retrevial, because killproc won't
work with avahi. So, I eplained that in the patch.
This patch is pretty useful in case we are including avahi in the
book. Please, take note of it.
William
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avahi-lfs-initscript-fixes.patch
Type: text/x-patch
Size: 1168 bytes
Desc: not available
Url : http://linuxfromscratch.org/pipermail/blfs-dev/attachments/20090519/afec8722/attachment.bin
More information about the blfs-dev
mailing list