Red Hat Bugzilla – Bug 5040
Scripts in init.d are bash not simple sh
Last modified: 2008-05-01 11:37:51 EDT
As one of those "let's speed things up" exercises I decided
to unbloat a lot of things by replacing the symlink
/bin/sh -> /bin/bash with /bin/sh -> /bin/ash
With a view also to getting my profile read in my xterms
(SHLVL=3 typically) ... anyway most things run right, but
something in /etc/rc.d/init.d/functions depends on bash
rather than simple sh functionality.
Suggest you make the dependency explicit in case anyone else
perl -i -p -e 's:^#!\s*/bin/sh\s*$:#!/bin/bash: ;' *
Hmm.... we'll look and see what's being bash specific.
OK, after looking at this some, we've fixed a couple of things,
but there are at least two bugs in ash (ash-0.2-18 will be
in the next Raw Hide release.)
The latest initscripts (4.41-2) should fix all known problems
of this sort.