Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 331487

Summary: www-servers/spawn-fcgi's init script does not work with non-bash /bin/sh
Product: Gentoo Linux Reporter: Piotr Karbowski (RETIRED) <slashbeast>
Component: Current packagesAssignee: www-servers Herd (OBSOLETE) <www-servers+disabled>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

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.