News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Schedule Reboot Core

Started by cyf4746, June 25, 2010, 12:31:37 PM

Previous topic - Next topic

cyf4746

Is anyone know how to set the core to reboot at a specific time, such as "reboot at every Sunday 10.00 am"?

sambuca

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

cyf4746

Thks Sambuca,
Just to make sure the core will not "hang" after long period running...

cyf4746

tkmedia

QuoteJust to make sure the core will not "hang" after long period running...


This isn't windows ;)


Tim
My Setup [url="http://wiki.linuxmce.org/index.php/User:Tkmedia"]http://wiki.linuxmce.org/index.php/User:Tkmedia[/url]

For LinuxMce compatible  systems and accessories
[url="http://lmcecompatible.com/"]http://lmcecompatible.com/[/url]

tschak909

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