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

Re: init.d script not using !/bin/sh



Excerpts from Thomas Goirand's message of 2014-02-09 09:19:55 -0800:
> On 02/09/2014 11:22 PM, Clint Byrum wrote:
> > Excerpts from Thomas Goirand's message of 2014-02-09 05:14:17 -0800:
> >> Hi,
> >>
> >> While we can discuss during literally *years* about which init system to
> >> use, I think it's more productive to try to improve what we have in
> >> packages, so I'd like to talk about that.
> >>
> >> One thing that bothers me is that some of our sysv-rc init.d scripts
> >> aren't using /bin/sh as interpreter.
> >>
> >> For example, on my laptop, the only one that I have is MySQL. Then after
> >> fixing the shebang and running checkbashism, I can only see:
> >>
> >> possible bashism in /etc/init.d/mysql line 86 (echo -e):
> >>           echo -e "$ps_alive processes alive and '$MYADMIN ping' resulted
> >> in\n$ping_output\n" | $ERR_LOGGER -p daemon.debug
> >>
> >> That's it... So that's a typical case where it should be possible to fix
> >> things, and get rid of bash.
> >>
> > 
> > Is that really an important goal to spend our time on?
> 
> IMO, it all depends on how much non-sh scripts we have to fix.

That answers how much time. But I'm curious what it costs to just leave
things as they are.


Reply to: