start-stop-daemon with chroot ?



Hi,

I'd like to use start-stop-daemon with chroot option, but I get a
strange error. A test:
# start-stop-daemon --start --chroot /bin --exec ls
start-stop-daemon: Unable to start ls: No such file or directory (No
such file or directory)

I should work, shouldn't it?
When I run this:
# start-stop-daemon --start --chroot /bin --exec inexistant_file
The error is different:
start-stop-daemon: stat /bin/inexistant_file: No such file or
directory (No such file or directory)

Why the first command doesn't work?

--
Tomek Gruca


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: start-stop-daemon with chroot ?
    ... strange error. ...  At least not if /bin/ls is the standard file from ... Running a statically linked program should work (can't try right now ... To UNSUBSCRIBE, email to debian-user-REQU...@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Strange error
    ... This day I've a very strange error when trying to connect to my FreeBSD machine ... Connection closed by remote host ... To unsubscribe, ...
    (freebsd-stable)
  • Strange error
    ... This day I've a very strange error when trying to connect to my FreeBSD machine ... Connection closed by remote host ... To unsubscribe, ...
    (freebsd-questions)