Jump to content


Photo

Script reboot


  • Please log in to reply
2 replies to this topic

#1 ziogion

  • Member
  • 5 posts

0
Neutral

Posted 26 February 2021 - 12:06

I would like to know how to create a script to reboot at 5:00 to restart the decoder, can anyone help me? I use the OPENPLI 7.3 on decoder vu + latest 4K



Re: Script reboot #2 WanWizard

  • PLi┬« Core member
  • 57,647 posts

+1,230
Excellent

Posted 26 February 2021 - 15:49

Why would you want to do that, simply restarting it without a proper shutdown isn't a good idea anyway.


Currently in use: VU+Duo 4K (2xFBC S2), Amiko Viper T2C (T2+fallback), Octagon SF8008 (S2+T2), Zgemma H9.2H (T2+fallback)

Many answers to your question can be found in our new and improved wiki.

Because to health reasons, I will not be active online very often anymore.


Re: Script reboot #3 Pike_Bishop

  • Senior Member
  • 982 posts

+42
Good

Posted 26 February 2021 - 16:52

Hi,

 

normally it is simple, you need only a script with the command reboot and a cronjob that start this script at 5:00, but @WanWizard is right this is n't a good idea.

you need at least a loop in the script that is looking if a record is running and if a record is running it didn't restart your box but makes a sleep and try it again if the sleep is expired

and that while as far as no record is running - is it that what you want ?

that is anyway doable.

 

 

regards

Pike


Edited by Pike_Bishop, 26 February 2021 - 16:53.

Receiver: Mutant HD 2400, VU Ultimo 4k

Image: PLI 7.2





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users