Jump to content

Wie automatischen Neustart einstellen?


Paule0815

Empfohlene Beiträge

Ich möchte meine Zee gern 1x täglich zu einer festgelegten Uhrzeit neu starten lassen.

 

Ich denke, dass man dazu einen neuen Timer anlegen muss, der ein Plugin ausführt. Aber ein Plugin 'Reboot' finde ich dort nicht.

Wie kann ich das hinbekommen?

 

Greetz

-Paule

Link zu diesem Kommentar
Auf anderen Seiten teilen

@Paule0815

Ich mach das in etwa so, probier das mal:

Ausserdem ist nur ein Timer, anstatt zwei erforderlich.

 

Beide Dateien (2x Spoiler) im ASCII-Unix-Datei-Format speichern.

Dateinamen: 03_reboot_dbx.cfg und 03_reboot_dbx.sh

 

Kopieren nach /var/tuxbox/plugins/03_reboot_dbx.cfg

 

type=3
name=Reboot Coolstream
desc=Coolstream neustarten
needfb=0
needrc=0
needvtxtpid=0
needoffsets=0

 

 

 

Kopieren nach und Rechte auf chmod 755 /var/tuxbox/plugins/03_reboot_dbx.sh

 

#!/bin/sh
# Saves EPG and reboots Coolstream.
# For Coolstream Kw-Images. Location /var/tuxbox/plugins/03_reboot_dbx.sh

echo "--- Executing /var/tuxbox/plugins/03_reboot_dbx.sh ---" > /dev/console

# Flag for recording
if [ -e /tmp/.record ]; then
  echo "--- /tmp/.record does exist (recording), dont reboot. ---" > /dev/console
  exit 0
fi

# Flag for rebooting
if [ ! -e /tmp/.reboot ]; then
  touch /tmp/.reboot && echo "--- /tmp/.reboot created ---" > /dev/console
fi

# Saves EPG, if on and path exist.
epg_dir=""
epg_save=""

if grep -q "epg_save=" /var/tuxbox/config/neutrino.conf; then
  epg_save=`grep "epg_save=" /var/tuxbox/config/neutrino.conf | cut -f2 -d=`
  if [ "$epg_save" = "true" -o "$epg_save" = "1" ]; then
     if grep -q "epg_dir=/" /var/tuxbox/config/neutrino.conf; then
        epg_dir=`grep "epg_dir=" /var/tuxbox/config/neutrino.conf | cut -f2 -d=`
        if [ "$epg_dir" != "" -a "$epg_dir" != "/" ]; then
           if [ -d "$epg_dir" ]; then
              echo "--- sectionsdcontrol --saveepg to "$epg_dir" ---" > /dev/console
              sectionsdcontrol --saveepg "$epg_dir" > /dev/null
              sleep 1
             else
              echo "--- sectionsdcontrol --saveepg to "$epg_dir", EPG directory does not exist ---" > /dev/console
           fi
        fi
     fi
  fi
fi

sync
sync

# Kills (shutdown) Neutrino-binary (-15), saves timer-, channellist etc., shutsdown timed, sectionsd, zapit
# etc., continues start_neutrino and reboots box, if /tmp/.reboot exist, otherwise system shutdown (halt).
echo "--- killall -15 neutrino # -TERM (software termination signal) ---" > /dev/console
killall -15 neutrino

exit 0

 

 

 

Unter Menu-->Service-->Plugins neu laden.

Unter Taste blau, gelb und grün, dann Plugin-Timer anlegen.

Zu beachten: In der Plugin-Auswahl erscheint der Script-/Pluginname ohne die ".sh"-Erweiterung,

dementsprechend ist auch in yWeb bei der Timererstellung, das Script/Plugin ohne ".sh" anzugeben.

Link zu diesem Kommentar
Auf anderen Seiten teilen

Moin .....

 

vllt. sollte man das Reboot-Plugin mit das Keywelt-Image übernehmen.

Warum?

Die Coolis laufen, richtig konfiguriert, absolut stabil ....

auch im 24/7 Serverbetrieb ...... ;)

Link zu diesem Kommentar
Auf anderen Seiten teilen

  • Wer ist Online   0 Benutzer

    • Keine registrierten Benutzer online.
×
×
  • Neu erstellen...