LinuxMCE Forums

General => Installation issues => Topic started by: cyf4746 on June 25, 2010, 12:31:37 pm

Title: Schedule Reboot Core
Post by: cyf4746 on June 25, 2010, 12:31:37 pm
Is anyone know how to set the core to reboot at a specific time, such as "reboot at every Sunday 10.00 am"?
Title: Re: Schedule Reboot Core
Post by: sambuca on June 25, 2010, 01:54:54 pm
You should look into the linux cron system.
Don't know why you would want to do this though. If you have any problems that needs reboot to fix, you should look into fixing those instead...

br,
sambuca
Title: Re: Schedule Reboot Core
Post by: cyf4746 on June 26, 2010, 07:17:38 am
Thks Sambuca,
Just to make sure the core will not "hang" after long period running...

cyf4746
Title: Re: Schedule Reboot Core
Post by: tkmedia on June 26, 2010, 04:47:25 pm
Quote
Just to make sure the core will not "hang" after long period running...


This isn't windows ;)


Tim
Title: Re: Schedule Reboot Core
Post by: tschak909 on June 26, 2010, 05:32:29 pm
To actually the your question,

If you look at Advanced > DCE > Commands, you will find Halt Device, which is used by the General Info Plugin.

If you send General Info Plugin a Halt Device, with the PK_Device of the core/hybrid, and set Force to R, then the system will reboot. This is how the buttons in the Advanced Options menu work.

This can done in a variety of ways, from sending it via MessageSend, to triggering it via a Timed Event, etc.

-Thom