Re: Start a daemon, show a syntax error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxxxxxx>:
> On Fri, Feb 17, 2012 at 03:03:21PM +0100, SanskritFritz wrote:
>> On Fri, Feb 17, 2012 at 12:18 PM, Lukas Fleischer
>> <archlinux@xxxxxxxxxxxxxx> 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)...


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux