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

Petter Reinholdtsen pere at hungry.com
Thu Feb 20 12:00:45 UTC 2014


[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. :)

> 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
-- 
Happy hacking
Petter Reinholdtsen



More information about the Pkg-sysvinit-devel mailing list