Re: [supervise] <defunct>
Daryl Tester <[email protected]> Tue, 10 Jul 2007 21:58:03 +0930
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
Sebastian Rahlf wrote: > I ommited a part at the beginning as it contains a quite lengthy comment > - among which the a '#!/bin/sh' was hidden. However, there was also a > comment line preceeding it which did not strike me as odd. Having > removed that line, daemontools now seems to run just fine. Well, as you've discovered, the #! is important. It *must* be the first two characters in the script as the kernel uses that as a magic 16 bit constant (in this case, for invoking the following interpreter and passing the file as a parameter). Some shell interpreters (bash springs to mind) don't necessarily try to exec the script (or if they do, they fail silently) and just interpret the contents instead. -- Regards, Daryl Tester "Bad kitty. Stop plotting evil." -- http://www.pvponline.com/article/3328/sun-may-20