Perhaps I'm missing something very obvious here, but I can't get start-stop-daemon to properly daemonize my program:
start-stop-daemon --start \
--background --chuid nobody:daemon \
--chroot /chroot/mattows \
--make-pidfile --pidfile /mattows.pid \
--exec /mattows 192.168.0.5 8080
start-stop-daemon tries to stat() /mattows and fails of course, as it
has to be a chroot-relative path, otherwise it will fail later when
actually trying to start the program.
This seems to be similar to this bug reported in 2002:
http://lists.debian.org/debian-dpkg/2002/04/msg00090.html
But someone must have been using this already, right?
cheers!
Matthias
--
I prefer encrypted and signed messages. KeyID: FAC37665
Fingerprint: 8C16 3F0A A6FC DF0D 19B0 8DEF 48D9 1700 FAC3 7665
pgpBkpmdIHZdk.pgp
Description: PGP signature
