|
SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Q: How to set the system to automatically reboot every 24 hrs?
I was just wondering if anyone knows a way to tell the system to reboot every 24 hours or at a specific time.
Basically, ReplayTV used to do this to keep everything running smooth and clean. And I'm guessing to free up any memory leak, no matter how small.... Lauren |
#2
|
||||
|
||||
#3
|
||||
|
||||
This is actually a pretty strange request. One of the huge selling points of linux is that unlike windows, it doesn't need constant reboots.
something like "crontab 0 0 * * * shutdown -r now" should do the trick, it'll tell the system to reboot at midnight - it's basically like a scheduled task in windows. Just type that in the command line. |
#4
|
||||
|
||||
there are issues with sage that only a reboot (currently) will fix... specifically check the post regarding "occasional choppieness." until this is fixed, i can certainly see the need for a scheduled reboot.
/jer |
#5
|
|||
|
|||
How about windows auto reboot?
__________________
Thanks, Dom www.domanddonna.com SageTV 4.1 / JVC Analog TV 27"/ 2.93G speed Computer/ 512mb Ram/ Pvr-150 / 45 Hauppage remote / Verto GeForce FX 5500 128mb svideo out/ Dishnetwork 501 box/VideoRedo Plus/ShowAnalyzer/DVDStyler Free Mpeg to Dvd recorder |
#6
|
||||
|
||||
Quote:
|
#7
|
|||
|
|||
time zone
Rebooting is a good idea, but what about setting the time zone? Every time I reboot the clock resets to UTC time, but I'm in Eastern standard time. The clock reads the correct time after about 1 or 2 hours. Anyway to force it to the correct time zone at start up?
__________________
-Chirag |
#8
|
||||
|
||||
Quote:
|
#9
|
||||
|
||||
I'm wondering if I need to emerge anything to have cron work and also how I'd apply this automatically upon every successful reboot (or does it just add to the cronjob list until I remove it, I guess I'll just try it out and find out -- Thanks for the tip!)...
[EDIT] Here's what I did and I hope it works! Code:
emerge crond cd ~ nano autoreboot (type 0 0 * * * shutdown -r now as dbfresh23 recommended and save file) crontab autoreboot Last edited by AboveUnrefined; 02-25-2006 at 08:27 PM. |
#10
|
||||
|
||||
I wanted to bump this up and draw more attention to procautostart... I think it would be a lot better to have procautostart running and detecting when sage crashes so it can start right back up whenever it does crash and not wait for a certain amount of time for a reboot... the whole thing is I haven't any time to figure out how to compile it or anything so I'm really hoping somebody can hammer it out at least for themselves!
|
#11
|
||||
|
||||
After you emerge cron, you'll want to start the service and have it run automatically on reboot.
emerge dcron /etc/init.d/dcron start rc-update add dcron default Use crontab -e to set your cron jobs. You can get mor einfo on using cron here Is there actually an issue with Sage crashing on Linux? Doesn't it respawn automatically from init? Arawak |
#12
|
||||
|
||||
Yeah it'll crash on my system and not respawn... problem with cron is that it doesn't detect when it crashes to rectify the problem immediately, but at least it will at whatever time you set your reboot. I want to get procautostart running and monitoring sage so when it does crash out it will restart in a matter of seconds.
|
#13
|
||||
|
||||
Well, I'd be very concerned if it were crashing on my system. One of the big attractions of running something on Linux is long uptimes.
I looked at procautostart and I have to say I don't really get it. The sage process runs from init, and is set to respawn if it exits. This should accomplish the same thing you are trying to do. There''s also Dan Bernstein's daemontools which are commonly used for keeping services running. This package has an ebuild already and is quite popular so support is pretty easy to come by. Arawak |
#14
|
||||
|
||||
Yeah, that big attraction kind of irked me when I discovered it was crashing out. It doesn't respawn on exit either, I come home from work and my TV will be a black screen occasionally with the console text being all skewed and streched. Simply typing startx and hitting enter will restart sage fine. I can also log in via ssh and do it... I've also twonkyserver cutting out on me too so I suspect it's a hardware issue on my end (probably memory or chipset related)
-- I'm tired of spending money already so I'll figure out how to get something up from what you recommended Arawak, thanks! |
#15
|
|||
|
|||
what version are you running?
|
#16
|
||||
|
||||
4.1.6 -- I've updated xvgl.so with what was posted on a previous thread but I've been working 80+ hours a week for the past month so I haven't really had any time to really test anything out... All I know is that I'll come home, turn on the TV and it has super streched out text from a console, logging in VIA ssh produces some feedback that's posted here -- http://forums.sagetv.com/forums/showthread.php?t=17244
Last edited by AboveUnrefined; 04-09-2006 at 07:07 AM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|