[avahi] [PATCH] Fixes for lfs initscripts

William Immendorf will.immendorf at gmail.com
Tue Apr 14 12:57:56 PDT 2009


On Tue, Apr 14, 2009 at 2:31 PM, Lennart Poettering
<lennart at poettering.net> wrote:
> On Mon, 06.04.09 09:41, William Immendorf (will.immendorf at gmail.com) wrote:
>> 1. I didn't use a sed to redict the .in file to a bootscript because
>> there was nothing to sed. However, this causes chown to fail because it
>> cant find the 'avahi' bootscript. I fixed that in the patch by adding a
>> cat to redict the .in file to the bootscript itself.
>
> Uh. It would make more sense if the init script would start the daemon
> via the right path.
Echg, you don't know how loadproc from the LFS initscripts works: It
automaticaly finds the daemon to start, so seding is not necessary.
>> 2. And also, I forgot to make symlinks to the bootscript in the
>> makefile, because that is what LFS does. So I added the ln commands to
>> make the symlinks.
>
> We dn't create those link farms on any distribution. Activating init
> services is a job for the administrator, not for 'make install'.
You don't know how LFS initscripts are layed out. The main init script
is installed into /etc/rc.d/init.d, and symbolic links are created in
/etc/rc.d/rc{0,1,2,3,4,5,6,sysinit}.d dirs. The form they are in is
this:

{Either S for start, or K for kill}{number that decinisates when the
script will run}{bootscript name}

... and the all link to the initscipt in init.d.

Oh, and why is this in make install? Because it would be a hassale for
the sysadmin to create those symbolic links manualy.

Those are the reasons why you should use my patch.


More information about the avahi mailing list