Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 331487 - www-servers/spawn-fcgi's init script does not work with non-bash /bin/sh
Summary: www-servers/spawn-fcgi's init script does not work with non-bash /bin/sh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: www-servers Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-07 10:01 UTC by Piotr Karbowski (RETIRED)
Modified: 2010-10-22 17:52 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 Piotr Karbowski (RETIRED) gentoo-dev 2010-08-07 10:01:05 UTC
www-servers/spawn-fcgi's init script does not work with non-bash /bin/sh.

OpenRC for a reason uses /bin/sh, not /bin/bash. Thats why I think init scripts should be compatible with non-bash /bin/sh, It should work with busybox's ash, dash etc.

Reproducible: Always

Steps to Reproduce:
1. Change symlink /bin/sh to /bin/dash or /bin/busybox
Actual Results:  
/etc/init.d/spawn-fcgi: 17: Syntax error: "(" unexpected (expecting "}")

Expected Results:  
/etc/init.d/spawn-fcgi should... work.

There is similar bug with mysqld init scripts, marked as blocker for openrc.
http://bugs.gentoo.org/175783
Comment 1 Wormo (RETIRED) gentoo-dev 2010-08-08 05:59:25 UTC
Severity changed to enhancement, since it's not policy yet that initrc scripts _must_ be non-bash compatible. However it's good to get this init script fixed, since it happens to be something useful for embedded systems.

Assigning to maintainers, but I'm sure they will appreciate patches based on your testing with ash...
Comment 2 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2010-08-08 12:23:37 UTC
yeah - patches welcome.
Comment 3 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2010-10-22 17:52:08 UTC
fixed in cvs.