Bug 5040

Summary: Scripts in init.d are bash not simple sh
Product: [Retired] Red Hat Linux Reporter: Andrew Macpherson <andrew>
Component: SysVinitAssignee: David Lawrence <dkl>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 6.0CC: andrew
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-09-14 21:47:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andrew Macpherson 1999-09-10 08:06:12 UTC
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
gets caught

cd /usr/local/rc.d/init.d
perl -i -p -e 's:^#!\s*/bin/sh\s*$:#!/bin/bash: ;' *

Comment 1 Bill Nottingham 1999-09-10 15:58:59 UTC
Hmm.... we'll look and see what's being bash specific.

Comment 2 Bill Nottingham 1999-09-13 18:33:59 UTC
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.)

Comment 3 Bill Nottingham 1999-09-14 21:47:59 UTC
The latest initscripts (4.41-2) should fix all known problems
of this sort.