Dmitry Bogatov:
I believe I already wrote in init-d-script(5) correct invocation:
#!/usr/bin/env /lib/init/init-d-script
That's not what was in the skeleton that you just got rid of; which had
more attention paid to it than the example in the manual page had, I
suspect.
The next portability bump on this road, discussed many times over the
years, is to hit platforms where env is not in /usr/bin. This is not
the case with Debian operating systems, though, fortunately. And I
doubt that you'll have many dealings with FreeBSD kernels from before
2005, where the #! mechanism was more like MacOS. (-:
* https://unix.stackexchange.com/questions/29608/
* https://unix.stackexchange.com/questions/111802/
* https://unix.stackexchange.com/questions/361794/