Bug #2280
closedinclude_shell does not work
Description
I have two identical versions of lighttpd (1.4.19) installed on two slightly different debian machines. One is processing the include_shell directives as expected, the other one ignores them.
I have modified /usr/share/lighttpd/create-mime.assign.pl to drop a line to a logfile, whenever called -=> stays empty.
I'm attaching the output of
strace -fe trace=open /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
for the working and non-working case.
While this might be a debian specific bug, you might be the guys able to find it.
Files
Updated by 00marcus almost 14 years ago
- File lighttpd.conf lighttpd.conf added
- File create-mime.assign.pl create-mime.assign.pl added
Both close to the defaults (and now attached)
Updated by 00marcus almost 14 years ago
FIXED
Turns out, lighttpd did not execute the include_shell scripts when I run it from within a screen session. It works when I run it from without.
Comparing both environments and playing with them bit by bit, it turned out to be a nasty misconfig in my .screenrc. The line "shell bash" caused all the problems.
SHELL=bash
running
export SHELL=/bin/bash
(or fixing the .screenrc)
rendered the system back to working.
THanks anyways.
Updated by stbuehler almost 14 years ago
- Status changed from New to Invalid
- Priority changed from High to Normal
- Target version deleted (
1.4.x)
Updated by Olaf-van-der-Spek almost 14 years ago
- Status changed from Invalid to Reopened
An error should be shown/logged if include_shell fails.
Updated by cheungtifan over 13 years ago
I do not think it is a bug -- shell should be specified to execute the script, anyway.
It also appeared on FreeBSD, however I resolved by adding SHELL=/bin/sh on top of rc.d script.
Updated by stbuehler over 13 years ago
- Status changed from Reopened to Fixed
- % Done changed from 0 to 100
Applied in changeset r2793.
Also available in: Atom