Petter Reinholdtsen <p...@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. -- |8] -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org