[arch-general] Start a daemon, show a syntax error
郑文辉(Techlive Zheng)
techlivezheng at gmail.com
Fri Feb 17 09:18:48 EST 2012
I can confirm that all my daemon script begin with "#!/bin/bash" by
runing `cd /etc/rc.d;find . -type f | xargs head -1 *`.
2012/2/17 Lukas Fleischer <archlinux at cryptocrack.de>:
> On Fri, Feb 17, 2012 at 03:03:21PM +0100, SanskritFritz wrote:
>> On Fri, Feb 17, 2012 at 12:18 PM, Lukas Fleischer
>> <archlinux at cryptocrack.de> wrote:
>> >> a) You're not using bash (e.g. running rc.d(8) in sh(1)/$whatever).
>> >> b) You built bash manually and disabled process substitution support.
>> >> c) You're running bash in POSIX mode.
>> >> d) Something else happened.
>> >
>> > e) Someone hacked into your system and changed the shebang of all daemon
>> > scripts to "#!/bin/sh".
>>
>> Maybe
>> f) Your default shell is not bash?
>
> That doesn't matter unless he invokes the "rc.d" script in a pretty
> stupid way. The most likely reason is that the script in question has a
> "#!/bin/sh" shebang (even though the OP claimed that it happens with all
> daemon scripts)...
More information about the arch-general
mailing list