[Pkg-sysvinit-devel] Bug#739604: sysvinit: The new skeleton does not work on kFreeBSD

Gergely Nagy algernon at balabit.hu
Thu Feb 20 14:17:20 UTC 2014

Petter Reinholdtsen <pere at hungry.com> writes:

> [Gergely Nagy]
>> The change introduced in sysvinit 2.88dsf-50, which turns
>> /etc/init.d/skeleton into a script that has /lib/init/init-d-script
>> as interpreter fails on kFreeBSD, because on that platform,
>> interpreters cannot be other scripts.
> Oh.  I tested on Linux and Hurd, and did not imagine that kFreeBSD was
> that different from these two. :)

It's Linux (since 2.6), Hurd and Minix being different from anything
else :)

>> If you want to do this kind of thing, you will either need a binary
>> wrapper at least on kFreeBSD, or you'll need to use sourcing.
> Right.  Back to the drawing board. :)
> Can you test this construct instead of #!/lib/init/init-d-script:
>   #!/bin/sh
>   if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
>     set $0 $@; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
>   fi

I can try it tomorrow or so. If you want, you can try it on the kfreebsd
porter boxes, it's easily reproducible there.


More information about the Pkg-sysvinit-devel mailing list