[Pkg-sysvinit-devel] Bug#739604: sysvinit: The new skeleton does not work on kFreeBSD
pere at hungry.com
Thu Feb 20 12:00:45 UTC 2014
> 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:
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
set $0 $@; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
More information about the Pkg-sysvinit-devel