Scheduled reboot Toon 1 for getting sluggish.

Forum about the Toon firmware, and its extensions

Moderators: marcelr, TheHogNL, Toonz, TerrorSource

User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1007
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: 1649
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: 18
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: 10
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: 1749
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: 10
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: 18
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
Post Reply

Return to “Toon Firmware”