Am 09.11.18 um 21:01 schrieb Dmitry Bogatov: > > [2018-11-08 19:06] Michael Biebl <bi...@debian.org> >> Am 08.11.18 um 18:54 schrieb Ian Jackson: >> >>> env(1) would be helpful here. If your daemon is on /usr anyway then >>> it doesn't matter that it isn't in /bin. >> >> /usr is mounted by the initramfs nowadays, so this wouldn't be an issue >> in practice. > > I made some experiments on FreeBSD-11 virtual image. I believe for > puproses we discuss, it is as good, as Debian GNU/kFreeBSD. > > * Note in /etc/init.d/skeleton still holds true -- shell script can't > be used as interpreter in #! of another script > * Trick with #!/usr/bin/env /path/to/script works. > > As such, I will update init-d-script(5) and it will close this bug.
Just tried the #!/usr/bin/env /lib/init/init-d-script proposal. Seem like this breaks the systemctl integration again. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826214 Regards, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature