My VDR system run on xorg without KDE.
cp init.d.runvdr.Debian /etc/init.d/runvdr chmod a+x /etc/init.d/runvdr cp runvdr /usr/bin/runvdr chmod a+x /usr/bin/runvdr cp runvdr.conf.example /etc/runvdr.conf ln -s /etc/init.d/runvdr /etc/rc2.d/S99runvdr
runvdr.conf:--------------------------------------------------# Fire up own X server as output deviceXSERVER="/usr/bin/X -nolisten tcp -config /etc/X11/xorg-runvdr.conf :0"--------------------------------------------------
when I start the VDR-PC,The Screen displays: /usr/bin/runvdr:line 576: 4515 Segmentation fault waiting for X server to shut downPID=4515RET=139VDR died within 10 seconds, this happened 6 time(s).Terminating because VDR died 6 times in a row quickly at wed Jan 14 06:51:28 CST 2009Sending 1 processes the TERM signal.terminated. /usr/bin/runvdr:line 576: 4515 Segmentation fault-----------------------------------------------------# Act as a proxy for calling VDR, from within X sessionif [ -n "$XSERVERPROXY" ] ; then eval "$VDRCMD &" PID=$! echo "PID $PID" > "$XSERVERPROXY" wait $PID #line 576: 4515 Segmentation fault echo "RET $?" >> "$XSERVERPROXY" exit 0fi ----------------------------------------------------- But after I logined the VDR-PC.root@vdr:/etc/inti.d/runvdr startthe VDR-PC run X at first, next run vdr is OK. why the VDR-PC can't auto run runvdr,but after I logined the VDR-PC,press the command:/etc/inti.d/runvdr start,the vdr running is OK?
_________________________________________________________________ 微软地图率先推出跨城市多点驾车路线查询! http://ditu.live.com/?form=MRAHAB&rtp=pos.30.454167_116.308611_%E5%A4%AA...
On 14 Jan 2009, at 11:48, LinHai wrote:
why the VDR-PC can't auto run runvdr,but after I logined the VDR- PC,press the command:/etc/inti.d/runvdr start,the vdr running is OK?
Probably some environment variables are not set. Try putting this line in your script and compare the output with when running as a real user;
set > /tmp/env
You probably just need to have environment settings for USER, HOME and PATH set properly.
On 14.01.2009 02:48, LinHai wrote:
when I start the VDR-PC,The Screen displays: /usr/bin/runvdr:line 576: 4515 Segmentation fault
Line 576 is in my latest patched runvdr extreme 0.4.0 release the line in which the actual VDR process is launched, at least if you're using the runvdr-0.4.0-xserver-commandline.diff patch. Otherwise it may be the wait $PID line you've marked.
Whatever causes the segfault to happen however seems to be a VDR or plugin problem, as the script does continue after it.
Since things do work later, there must be some difference when starting from boot instead of later. Compare the environment as Torgeir suggested. It may also be because of things that may happen later in the boot process - folders not existing or drivers not loaded or whatever.
Cheers,
Udo