Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 448096 - incorrect shebang for runscript.sh
Summary: incorrect shebang for runscript.sh
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-21 17:26 UTC by Arvind Jayaprakash
Modified: 2012-12-23 18:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvind Jayaprakash 2012-12-21 17:26:46 UTC
The file /lib[64]/rc/sh/runscript.sh is actually a bash script and not a pure POSIX shell compliant code. The script fails to execute successfuly on such systems


Reproducible: Always




change the shebang to say #!/bin/bash as opposed to #!/bin/sh
Comment 1 SpanKY gentoo-dev 2012-12-21 19:03:05 UTC
no actual details as to why you think it doesn't conform to POSIX.  please do not file vague bugs.
Comment 2 William Hubbs gentoo-dev 2012-12-21 19:11:47 UTC
(In reply to comment #0)
> The file /lib[64]/rc/sh/runscript.sh is actually a bash script and not a
> pure POSIX shell compliant code. The script fails to execute successfuly on
> such systems
> change the shebang to say #!/bin/bash as opposed to #!/bin/sh

The script is meant to be posix compliant, so if it isn't, let us know why it isn't. That is the correct fix, not requiring bash.
Comment 3 Arvind Jayaprakash 2012-12-23 05:21:00 UTC
My bad due to poor understanding of how runscript works.

The problem turned out to be with init scripts of various applications I have on my system (eg: memcached, mysql, etc. etc). It so happens that the error message shown usually suggests the problem is with runscript.sh as opposed to the init script.

Here is an example of the output http://pastie.org/5567404

I guess the answer is something
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-12-23 18:05:08 UTC
And those in init.d/memcached are fixed now.