Feature #1847
closedadd -d option to spawn-fcgi
Description
fixes problems with files not found
Files
Updated by icy almost 16 years ago
- Status changed from New to Need Feedback
- Target version deleted (
1.4.20)
Err, why don't you just cd to the directory before calling spawn-fcgi?
Updated by v almost 16 years ago
i love this patch.
this is crap to cd in the directory before calling spawn-fcgi !!! A binary must be started anywhere and the -d option allows you to do that
Updated by raphaelh almost 16 years ago
icy wrote:
Err, why don't you just cd to the directory before calling spawn-fcgi?
This is not intuitive, because it behaves differently from when the fastcgi daemon is automatically spawned by lighttpd:
- before, I was telling lighttpd to launch the fastcgi daemon automatically, everything was working fine
- then, I began using spawn-fcgi to launch the fastcgi daemon, but it was no longer finding the files it needed
That's why I made this quick patch to have a consistent behavior between the 2 methods of launching the fastcgi daemon.
Updated by Olaf-van-der-Spek almost 16 years ago
raphaelh wrote:
This is not intuitive, because it behaves differently from when the fastcgi daemon is automatically spawned by lighttpd:
That's probably because relative paths are used somewhere. Why not use absolute paths?
Updated by raphaelh almost 16 years ago
Olaf-van-der-Spek wrote:
raphaelh wrote:
This is not intuitive, because it behaves differently from when the fastcgi daemon is automatically spawned by lighttpd:
That's probably because relative paths are used somewhere. Why not use absolute paths?
Well yeah, I could just cd before spawning, or use absolute paths
and anyway I use the small patch on my lighttpd, so it's not a problem for me...
But I was just saying that it could save some time for other people when switching from lighttpd autospawn to spawn-fcgi, as this patch was helpful for me I wanted to share :)
Updated by Olaf-van-der-Spek almost 16 years ago
raphaelh wrote:
and anyway I use the small patch on my lighttpd, so it's not a problem for me...
I still have no idea what the advantage of this patch over a 'manual' cd is...
Updated by icy almost 16 years ago
- Status changed from Need Feedback to Patch Pending
- Pending changed from No to Yes
Well, at least it doesn't hurt and some people might find it convenient.
Updated by Olaf-van-der-Spek almost 16 years ago
icy wrote:
Well, at least it doesn't hurt and some people might find it convenient.
It does increase complexity of code and parameters. That's not a positive thing. ;)
Updated by stbuehler over 15 years ago
- Project changed from Lighttpd to spawn-fcgi
- Category deleted (
spawn-fcgi)
Updated by stbuehler over 15 years ago
If you want to spawn an application in a chroot and want a specific current directory before spawning, a wrapper script is a little bit overkill (and don't forget you would have to add the interpreter to the chroot...).
And as this option looks easy i just added it :)
Updated by stbuehler over 15 years ago
- Status changed from Patch Pending to Fixed
- % Done changed from 0 to 100
Applied in changeset r34.
Also available in: Atom