From patchwork Fri Apr 24 18:46:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Infonux X-Patchwork-Id: 29291 Received: from localhost ([127.0.0.1] helo=www.linuxtv.org) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1YlicM-0001Po-AT; Fri, 24 Apr 2015 20:46:26 +0200 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1YlicK-0001PU-7g for vdr@linuxtv.org; Fri, 24 Apr 2015 20:46:25 +0200 X-tubIT-Incoming-IP: 209.85.212.169 Received: from mail-wi0-f169.google.com ([209.85.212.169]) by mail.tu-berlin.de (exim-4.76/mailfrontend-5) with esmtps [UNKNOWN:AES128-GCM-SHA256:128] for id 1YlicI-00011d-7c; Fri, 24 Apr 2015 20:46:23 +0200 Received: by wizk4 with SMTP id k4so32352058wiz.1 for ; Fri, 24 Apr 2015 11:46:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type; bh=CudpuPrZRV82dmWPOzorRt8EIe758MvGrcKqKnkCSms=; b=f8NeWiNPHHf/gt3gq0/ggsYLTCl5Nm2ReJhzh2iIlVj0jTwLMPoeb77zEPqp8xOzF1 Ak5HybR1k1MYvi3UDMBgN7MQBXJIgEm/eC0VLKW6OOvMo7FOcw1G+ABDhADEhVHgxcys RTSUHlM3+Kxu/iEkaiRyphESDmZr8jcNVs1SypfXR755wiAM84Pj3jGj6RxLG/liazvv qCYbXJZ9LUL/A9IHthnmRizBDNTtXUwV0DC+A91guxzqV+x1jUwX/eQPO1BA5q79YBj1 nrx3BDS8A2aciuUocG4OyPnnQrmzUa7TWAbZE0or1LLh8LfI95Cm5ExZ2cbK06uNQIXS h6CA== X-Received: by 10.194.23.197 with SMTP id o5mr18526285wjf.75.1429901182037; Fri, 24 Apr 2015 11:46:22 -0700 (PDT) Received: from zz (246.97.100.87.rev.sfr.net. [87.100.97.246]) by mx.google.com with ESMTPSA id 16sm18013200wjs.41.2015.04.24.11.46.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Apr 2015 11:46:21 -0700 (PDT) Date: Fri, 24 Apr 2015 20:46:25 +0200 From: Zouhair To: vdr@linuxtv.org Message-ID: <20150424204625.2e003cae@zz> In-Reply-To: <553A72D0.8090309@tvdr.de> References: <20150424134329.1c0be163@zz> <553A4C13.1030600@tvdr.de> <20150424161211.4129ef71@zz> <553A5026.4040304@tvdr.de> <20150424183929.2ba81509@zz> <553A72D0.8090309@tvdr.de> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2015.4.24.183925 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' FROM_NAME_ONE_WORD 0.05, HTML_00_01 0.05, HTML_00_10 0.05, MIME_TEXT_ONLY_MP_MIXED 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_4000_4999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DKIM_SIGNATURE 0, INVALID_MSGID_NO_FQDN 0, REFERENCES 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CP_MEDIA_BODY 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_MIXED 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FORWARDED_MSG 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __PHISH_SPEAR_STRUCTURE_1 0, __RDNS_GMAIL 0, __REFERENCES 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __SUBJ_ALPHA_NEGATE 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __URI_NS , __YOUTUBE_RCVD 0' X-LSpam-Score: -1.8 (-) X-LSpam-Report: No, score=-1.8 required=5.0 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RDNS_NONE=0.793, T_DKIM_INVALID=0.01 autolearn=no Subject: Re: [vdr] EPG lost after restarting vdr X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: vdr-bounces@linuxtv.org Errors-To: vdr-bounces@linuxtv.org Le vendredi 24 avril 2015 Klaus Schmidinger a écrit: > On 24.04.2015 18:39, Zouhair wrote: > > Le vendredi 24 avril 2015 > > Klaus Schmidinger a écrit: > > > >> On 24.04.2015 16:12, Zouhair wrote: > >>> Le vendredi 24 avril 2015 > >>> Klaus Schmidinger a écrit: > >>> > >>>> On 24.04.2015 13:43, Zouhair wrote: > >>>>> Hi, > >>>>> > >>>>> how to make vdr save epg data ? > >>>>> I use xmltv2vdr to retrieve epg database, so is need about 5 > >>>>> minutes to put in to vdr. Should always run xmltv2vdr after > >>>>> restarting vdr ? > >>>>> > >>>>> the epg.data is configured to be stored in /home/.config/vdr/ > >>>>> with right permission, but no file created :( > >>>>> > >>>>> Here cmd line: > >>>>> /usr/bin/vdr -v /home/Video -c /home/.config/vdr -L /usr/lib/vdr > >>>>> -r /usr/lib/vdr/vdr-recordingaction -s > >>>>> -E /home/.config/vdr/epg.data ... > >>>>> > >>>>> there may be a setup that I ignored ? > >>>>> > >>>>> Thanks. > >>>>> > >>>>> using: > >>>>> vdr version 2.2.0 (compiled from source without any patch) > >>>>> debian jessie i386 > >>>>> linux 3.19.0 > >>>> > >>>> VDR saves the epg.data only every 10 minutes. Maybe you're not > >>>> waiting long enough? > >>>> > >>>> Klaus > >>> > >>> after 10 hours, no file (epg.data) created. > >> > >> I just saw that there is an option '-s' without an argument in your > >> command line. Try leaving that one out, or provide an actual script > >> file name. > > > > i am using debian vdr script's from 1.7.x ... > > > > here full cmd line's: > > > > /bin/sh /usr/sbin/runvdr -v /home/Video -c /home/.config/vdr > > -L /usr/lib/vdr -r /usr/lib/vdr/vdr-recordingaction -s > > The '-s' at teh end of the above line is wrong. You need to either > strip it, or put a script file name after it. > > > -E /home/.config/vdr/epg.data -u media -g /tmp --port 6419 --vfat > > -w 60 --lirc -P streamdev-server -P "xineliboutput --local=none > > --primary --remote=:37890" -P dvbsddevice -P epgtableid0 -P femon > > -P iptv -P dvbhddevice -P wirbelscan -P xvdr -P dvbapi -P > > streamdev-client -P vnsiserver > > > > /usr/bin/vdr -v /home/Video -c /home/.config/vdr -L /usr/lib/vdr > > -r /usr/lib/vdr/vdr-recordingaction -s > > -E /home/.config/vdr/epg.data -u > > Same as above. > > > media -g /tmp --port 6419 --vfat -w 60 --lirc -P streamdev-server -P > > xineliboutput --local=none --primary --remote=:37890 -P dvbsddevice > > -P epgtableid0 -P femon -P iptv -P dvbhddevice -P wirbelscan -P > > xvdr -P dvbapi -P streamdev-client -P vnsiserver > > Klaus hmm! is bug on debian script. Sorry for my stupid mistake. fix patch attched (for debian users) with this fix, "-s" used only if shutdown is enabled in /etc/default/vdr (ENABLE_SHUTDOWN=1) Thanks. --- /etc/init.d/vdr_debian_init_epg_bug 2015-04-24 20:21:39.255285110 +0200 +++ /etc/init.d/vdr 2015-04-24 20:19:11.761530562 +0200 @@ -27,7 +27,7 @@ . /usr/lib/vdr/config-loader.sh # Set shutdown command -test "$ENABLE_SHUTDOWN" = "1" && VDRSHUTDOWN="/usr/lib/vdr/vdr-shutdown.wrapper" \ +test "$ENABLE_SHUTDOWN" = "1" && VDRSHUTDOWN="-s /usr/lib/vdr/vdr-shutdown.wrapper" \ || VDRSHUTDOWN="" . /usr/lib/vdr/plugin-loader.sh @@ -97,7 +97,7 @@ start-stop-daemon --start --quiet --startas $DAEMON --background -d /tmp \ --name $(basename $DAEMON) --pidfile $PIDFILE --make-pidfile -- \ -v $VIDEO_DIR -c $CFG_DIR -L $PLUGIN_DIR -r $REC_CMD \ - -s $VDRSHUTDOWN -E $EPG_FILE -u $USER -g /tmp \ + $VDRSHUTDOWN -E $EPG_FILE -u $USER -g /tmp \ --port $SVDRP_PORT $OPTIONS $LIRC_OPT $PLUGINS $REDIRECT else echo -n " - seems to be running already"