Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: VDR pidfile
On Wed, Jun 23, 2004 at 08:17:27PM +0200, Roland Behme wrote:
> Hi Darren,
>
> > Assuming Debian:
> > $ man 8 start-stop-daemon
> It's Gentoo.
>
> I tried start-stop-daemon, but it does not seem to be the solution:
>
> vdr root # /etc/init.d/vdr start
> * Starting VDR... [ ok ]
> vdr root # cat /var/run/vdr.pid
> 3277
> vdr root # pidof vdr
> 3288 3287 3286 3285 3284 3282 3281 3280 3279
> vdr root # kill -s 0 3277
> -bash: kill: (3277) - No such process
>
>
> The startscript looks like this:
>
> -- snip --------------------------------------
> start-stop-daemon --start \
> --background \
> --make-pidfile \
> --pidfile /var/run/vdr.pid \
> --exec /usr/local/bin/vdr -- -d -l 3 \
> -L /usr/local/lib \
> ... even more options
> -- snip --------------------------------------
>
> It seems like VDR returns a wrong PID or the VDR-process started by
> start-stop-daemon terminates after making some children (like all of
> us *g*).
>
> Any ideas?
The fix is really simple, nevertheless it was never added to
vdr ;^)
OK, one problem could be that vdr has to run as root upto
the point where the pid file will be created.
Werner
--
AC3 loop through sound card http://bitstreamout.sourceforge.net/
Howto http://www.vdr-portal.de/board/thread.php?threadid=1958
------------------------------------------------------------------
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
Home |
Main Index |
Thread Index