Gentoo Archives: gentoo-server

From: Matthias Bethke <matthias@×××××××.de>
To: gentoo-server@l.g.o
Subject: [gentoo-server] start-stop-daemon weirdness
Date: Thu, 23 Mar 2006 17:53:42
Message-Id: 20060323174834.GA11579@huxley
1 Perhaps I'm missing something very obvious here, but I can't get
2 start-stop-daemon to properly daemonize my program:
3
4 start-stop-daemon --start \
5 --background --chuid nobody:daemon \
6 --chroot /chroot/mattows \
7 --make-pidfile --pidfile /mattows.pid \
8 --exec /mattows 192.168.0.5 8080
9
10 start-stop-daemon tries to stat() /mattows and fails of course, as it
11 has to be a chroot-relative path, otherwise it will fail later when
12 actually trying to start the program.
13 This seems to be similar to this bug reported in 2002:
14 http://lists.debian.org/debian-dpkg/2002/04/msg00090.html
15 But someone must have been using this already, right?
16
17 cheers!
18 Matthias
19 --
20 I prefer encrypted and signed messages. KeyID: FAC37665
21 Fingerprint: 8C16 3F0A A6FC DF0D 19B0 8DEF 48D9 1700 FAC3 7665