Hi! On Mon, 2012-04-16 at 14:33:10 -0400, Christian Hudon wrote: > Package: dpkg > Version: 1.16.2 > Severity: minor > > I was trying (and failing) to start a Python paster instance inside > a virtualenv like this: > > start-stop-daemon -u useridhere --chdir /srv/virtualenv_path --exec > bin/paster --start -- serve development.ini > > It took me a while to figure out what the problem was, but with some > help from strace I figured out that start-stop-daemon stats for the > existence of the executable before doing the chdir, something which > certainly was not obvious to me initially... > > It would be nice if executables specified as relative paths together > with a --chdir worked more intuitively. Can I suggest either moving > the chdir call before the stat(fullexecname), or modifying the logic > that builds fullexecname so that it takes into account the value of > the --chdir option too (if one was passed).
Ah makes sense to handle the chdir case similar to the chroot one, I'm changing that locally, will be included in my next push targetting 1.16.3. In any case when dealing with interpreted scripts you really want --name because --exec will not match correctly (this should be now better documented in the man page BTW). thanks, guillem -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org