Scheduled reboot Toon 1 for getting sluggish.

Forum about the Toon firmware, and its extensions

Moderators: marcelr, TheHogNL, Toonz

User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: Scheduled reboot Toon 1 for getting sluggish.

Post by RDNZL »

4nuts wrote: Tue Apr 12, 2022 7:03 am by 4nuts » 12 Apr 2022 06:03
I have it on my Toon1:

eneco-001-00xxxx:~# which crontab
/usr/bin/crontab
Regards, Ron.
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Scheduled reboot Toon 1 for getting sluggish.

Post by hvxl »

It's provided by the cron package:

Code: Select all

toon:~# opkg files cron
Package cron (3.0pl1-r8) is installed on root and has the following files:
/etc/init.d/cron
/var/cron/tabs/
/var/cron/
/usr/bin/crontab
/usr/sbin/cron
I don't recall if I installed that package manually, but maybe you can.
Schelte
4nuts
Starting Member
Starting Member
Posts: 20
Joined: Wed Dec 22, 2021 12:43 pm

Re: Scheduled reboot Toon 1 for getting sluggish.

Post by 4nuts »

RDNZL wrote: Tue Apr 12, 2022 9:46 am
4nuts wrote: Tue Apr 12, 2022 7:03 am by 4nuts » 12 Apr 2022 06:03
I have it on my Toon1:

eneco-001-00xxxx:~# which crontab
/usr/bin/crontab
Hi Ron,

On my Toon1 no crontab here, maybe installed later manually ?
Havym
Starting Member
Starting Member
Posts: 11
Joined: Wed Sep 25, 2019 10:57 pm
Location: Netherlands

Re: Scheduled reboot Toon 1 for getting sluggish.

Post by Havym »

No crontab on my Toon1 here...

Code: Select all

eneco-001-14****:~# opkg files cron
Collected errors:
 * opkg_files_cmd: Package cron not installed.
How can i manually install cron on a toon?


@4nuts, is it possible to share the python code?
4nuts wrote: Sun Apr 10, 2022 11:08 am The python code does the following:
-1- Setup an SSH connection to the Toon
-2- Daily @ 4 am it sents out the ssh command /sbin/shutdown -r now , the Toon will reboot and freeup the memory.
-3- every minute send the following command to the Toon : uptime , free and iostat -c 1 1 and store the results in Homeassistant via MQTT.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Scheduled reboot Toon 1 for getting sluggish.

Post by Toonz »

member of the Toon Software Collective
Havym
Starting Member
Starting Member
Posts: 11
Joined: Wed Sep 25, 2019 10:57 pm
Location: Netherlands

Re: Scheduled reboot Toon 1 for getting sluggish.

Post by Havym »

Thanks! :D
4nuts
Starting Member
Starting Member
Posts: 20
Joined: Wed Dec 22, 2021 12:43 pm

Re: Scheduled reboot Toon 1 for getting sluggish.

Post by 4nuts »

Toonz wrote: Sat Apr 16, 2022 8:51 pm cron ipk can be found here: http://files.domoticaforum.eu/index.php ... on/ipk/qb2

install via "opkg install http://files.domoticaforum.eu/uploads/T ... r8_qb2.ipk"
Great ! now crontab is running on my Toon1.
No more remote Python Reboot :D
Micha_123
Starting Member
Starting Member
Posts: 39
Joined: Mon Sep 09, 2019 6:51 pm

Re: Scheduled reboot Toon 1 for getting sluggish.

Post by Micha_123 »

cannot install it on toon1

Installing cron (3.0pl1-r8) to root...
Collected errors:
* opkg_install_pkg: Package cron md5sum mismatch. Either the opkg or the package index are corrupt. Try 'opkg update'.
* opkg_install_cmd: Cannot install package cron.


ok, i have made the VPN connection

./update-rooted.sh -o

and then i ran opkg install cron

then i rebooted the toon to close the vpn connection to eneco
oepi-loepi
Advanced Member
Advanced Member
Posts: 628
Joined: Sat Feb 09, 2019 7:18 pm

Re: Scheduled reboot Toon 1 for getting sluggish.

Post by oepi-loepi »

I also made an app in the toonstore for reboot. Every monday night it will be rebooted
4nuts
Starting Member
Starting Member
Posts: 20
Joined: Wed Dec 22, 2021 12:43 pm

Re: Scheduled reboot Toon 1 for getting sluggish.

Post by 4nuts »

oepi-loepi wrote: Sat Sep 17, 2022 4:59 pm I also made an app in the toonstore for reboot. Every monday night it will be rebooted
that is nice to have it in the toonstore , but for me a restart on weekly basis will not work, after 3-4 days the Toon slows down.
So I reboot every night with a crontab and that works great. :D
oepi-loepi
Advanced Member
Advanced Member
Posts: 628
Joined: Sat Feb 09, 2019 7:18 pm

Re: Scheduled reboot Toon 1 for getting sluggish.

Post by oepi-loepi »

Ok, maybe..just maybe i will adjust the app to have the interval al variable.
Post Reply

Return to “Toon Firmware”