NZBGet Autostart

L I V E Stammtisch ab 20:30 Uhr im Chat
  • Hi,

    habe eben nzbget auf meinem pi installiert und bekomme leider keinen autostart hin.

    Ich habe es folgendermaßen versucht:

    Code
    sudo nano /etc/init.d/nzbget

    Da habe ich dann folgendes reingepackt:

    [font="monospace, serif"]#!/bin/sh[/font]
    [font="monospace, serif"]# Start/stop the NZBget daemon.[/font]
    [font="monospace, serif"]#[/font]
    [font="monospace, serif"]case "$1" in[/font]
    [font="monospace, serif"]start) echo -n "Start services: NZBget"[/font]
    [font="monospace, serif"] /usr/local/bin/nzbget -D[/font]
    [font="monospace, serif"] ;;[/font]
    [font="monospace, serif"]stop) echo -n "Stop services: NZBget"[/font]
    [font="monospace, serif"] /usr/local/bin/nzbget -Q[/font]
    [font="monospace, serif"] ;;[/font]
    [font="monospace, serif"]restart)[/font]
    [font="monospace, serif"] $0 stop[/font]
    [font="monospace, serif"] $0 start[/font]
    [font="monospace, serif"] ;;[/font]
    [font="monospace, serif"]*) echo "Usage: $0 start|stop|restart"[/font]
    [font="monospace, serif"] exit 1[/font]
    [font="monospace, serif"] ;;[/font]
    [font="monospace, serif"]esac[/font]
    [font="monospace, serif"]exit 0[/font]

    danach speichern, exit und

    Code
    sudo chmod 755 /etc/init.d/nzbget

    zum Schluss nur noch

    Code
    sudo update-rc.d nzbget defaults

    Leider bekomme ich beim letzten Schritt eine Fehlermeldung, aus der ich nicht ganz schlau werde:

    Code
    update-rc.d: using dependency based boot sequencing
    insserv: warning: script 'nzbget' missing LSB tags and overrides
    insserv: There is a loop between service watchdog and nzbget if stopped
    insserv:  loop involving service nzbget at depth 2
    insserv:  loop involving service watchdog at depth 1
    insserv: Stopping nzbget depends on watchdog and therefore on system facility `$all' which can not be true!
    insserv: exiting now without changing boot order!
    update-rc.d: error: insserv rejected the script header

    Weiß jemand weiter - bin mit den Nerven echt am Ende!

    Danke :)

    Einmal editiert, zuletzt von g1x (27. März 2013 um 12:49)

  • Für alle, die es interessiert:

    Habe das Ganze nun gefixt - via cronjob.

    Einfach diese Zeile einfügen und speichern - nach dem Neustart sollte NZBGet automatisch starten :)

    Code
    @reboot /usr/local/bin/nzbget -D

Jetzt mitmachen!

Du hast noch kein Benutzerkonto auf unserer Seite? Registriere dich kostenlos und nimm an unserer Community teil!