Confirmed users
4,971
edits
(→Memory) |
|||
| Line 322: | Line 322: | ||
chmod a+x /etc/init.d/buildbot /media/mmc1/buildbot/start.sh | chmod a+x /etc/init.d/buildbot /media/mmc1/buildbot/start.sh | ||
update-rc.d buildbot defaults 99 | update-rc.d buildbot defaults 99 | ||
=== Set up a daily reboot === | |||
I've seen too many devices hang or lose buildbot connectivity, then go idle for days and shut themselves off. To try to combat this, I'm trying to make sure none of them stay up for more than 1-2 days. | |||
Create an <tt>/etc/cron.daily/daily_reboot.sh</tt> : | |||
#!/bin/sh | |||
uptime | grep day > /dev/null | |||
if [ $? -eq 0 ] ; then | |||
reboot | |||
fi | |||
Then | |||
chmod a+x /etc/cron.daily/daily_reboot.sh | |||
If this is too aggressive I can change "day" to "days" but I think it should help more than not. | |||
== Talos == | == Talos == | ||