tsites
tsites computer tuition, website design, network security

Timedrestart

Timedrestart will restart your linux-based computer at a given time every day, as long as the program and it's main window is open. You can make sure Timedrestart is running by adding it to your login session startup items. You can configure options in the included 'restartconfig' file.

About

Edit the restartconfig file. Here you can adjust the colours, where the window is positioned automatically and when the restart actually takes place. The 'restartdelay' option is a pause command. It waits this number of seconds before actually restarting. This is because linux usually boots in under a minute on a fast system, so this is to avoid your system rebooting multiple times.

You can also drag the window by the handle on the left to reposition it. Changes will be saved in the restartconfig file automatically.

Moving your mouse over the times will now show the uptime (how long since the last system restart).

In the config file, you can now change line 6 to read "shutdowninstead: true" and it will shutdown the computer instead of restarting. I've also added the "hiddenwindow" option. If you set this to true, then no window will be shown to indicate that Timedrestart is running (You'd have to force quit using a task manager).

If you want to quit the program, just hold the shift key on your keyboard while you click the 'uptime' message.

Timedrestart is fully portable, meaning it shouldn't need any other dependencies at all.

How does it work?

Timedrestart will try and issue the commands: "/sbin/reboot" and "/sbin/shutdown now", so if your system does not allow these commands to run, then Timedrestart will not function. You could try and run these two commands manually in a terminal first and see if they work.

Download

Download Timedrestart for 64bit Linux

Pricing

Timedrestart is free.

Version history

version 0.1 - November 2020. First test release

version 0.12 - November 2020 (a few days later) - added the uptime function

version 0.13 - October 2022 - added the shutdowninstead function

version 0.14 - October 2022 - added the hiddenwindow option

System requirements

Tested with Xubuntu 20.04, and should work with Ubuntu, Lubuntu family of distros. If you are looking for a Debian version, I'd recommend you use rebooter instead for Debian distros.

If you have any suggestions, please get in touch via email. Many thanks.

Tom.

tom@tsites.co.uk