[0.4pre1] template für /etc/init/vdr-net.conf

  • Hallo,


    die Datei /etc/init/vdr-net.conf war nicht vorhanden.
    Daraufhin habe ich das Template analog zur 0.3.0 in /usr/share/yavdr/templates/etc/init/vdr-net.conf erstellt und die für mich notwendige Erweiterung in
    /etc/yavdr/templates_custom/etc/init/vdr-net.conf eingepfegt.


    Leider habe ich trotzdem immer noch das Problem, dass der VDR aufgrund eines fehlenden video-Verzeichnisses nicht startet.
    Das Skript wird durchlaufen, aber irgendwie wartet der vdr-start nicht.
    Logge ich mich nach dem Start des VDR ein und führe den VDR start manuell aus funktioniert es


    --------------------------------------------------------------------------------------------------------------------


    root@linvdr:/srv/vdr# cat /etc/auto.dom0
    video -fstype=nfs dom0:/share/video
    musik -fstype=nfs dom0:/share/music
    vdr -fstype=nfs dom0:/share/vdr
    photo -fstype=nfs dom0:/share/foto
    -------------------------------------------------------------------------------------------------------------------------------



    root@linvdr:/srv/vdr# ls -la /srv/vdr/video.00
    lrwxrwxrwx 1 root root 10 2011-07-27 14:03 /srv/vdr/video.00 -> /share/vdr


    ---------------------------------------------------------------------------------------------------------------------------------


    root@linvdr:/srv/vdr# cat /etc/init/vdr-net.conf
    #################################################################################
    # #
    # The following configuration file is generated automatically by the yaVDR #
    # system. Don't change this file as every update of yaVDR will overwrite #
    # the local changes. Instead put your required customizations #
    # into /etc/yavdr/templates_custom/ based on the original templates #
    # under /usr/share/yavdr/templates. #
    # #
    # http://www.vdr-wiki.de/wiki/in…#Templating.2FCustomizing #
    # #
    # #
    #################################################################################
    #
    description "Delayed notifaction service of net mounted dirs"
    author "Arno Esser <arno.esser@gmx.de>"


    start on started autofs and started vdr


    task


    script


    DATE=`date +'%Y-%m-%d %H:%M:%S'`
    echo $DATE > /var/log/vdr/vdr-net.conf


    sleep 20
    if [ -e /etc/auto.net.yavdr ]; then
    mountpoints=`cat /etc/auto.net.yavdr | awk '!/^#/ && /fstype/ {print $1}'`
    if [ -n "$mountpoints" ]; then
    until status autofs | grep -q process ; do sleep 1 ; done
    for mountpoint in $mountpoints; do
    touch /net.yavdr/$mountpoint/. &> /dev/null || /bin/true
    done
    fi
    fi


    if [ -e /etc/auto.dom0 ]; then
    mountpoints=`cat /etc/auto.dom0 | awk '!/^#/ && /fstype/ {print $1}'`
    if [ -n "$mountpoints" ]; then
    until status autofs | grep -q process ; do sleep 1 ; done
    for mountpoint in $mountpoints; do
    echo touch /share/$mountpoint/.
    touch /share/$mountpoint/. &> /dev/null || /bin/true
    done
    fi
    fi


    DATE=`date +'%Y-%m-%d %H:%M:%S'`
    echo $DATE >> /var/log/vdr/vdr-net.conf


    end script

    XEN-Server mit virt. Nas, VDR +3 zus. domUs
    Zotac Zotac ZBOX HD-ID41 + 2GB RAM + IGOR USB + Openelec (Frodo RC2)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!