Trying to set my ZimaCube up on a restart timer every day at 5am

So I am attempting to set up a restart service/timer so my ZimaCube can restart every morning. However, it doesn’t seem like the systemd commands I’m inputting are being enabled once the restart happens. Is anyone able to supply any information?

My restart.timer file is:

[Unit]
Description=Restart system every day at 5 AM Eastern Time

[Timer]
OnCalendar=*-*-* 10:00:00
Unit=restart.service
Persistent=true

[Install]
WantedBy=timers.target

And my restart.service is:

[Unit]
Description=Restart the system

[Service]
Type=simple
ExecStart=/usr/bin/systemctl --force reboot

[Install]
WantedBy=timers.target

Unsure what commands I need to do to make sure these are added once it restart so I don’t have to keep inputting commands to make the service/timer files run every time.

Thanks!

Did you put both files into /etc/systemd/system?

And did you enable the timer?

Either with

sudo systemctl enable restart.timer
sudo systemctl start restart.timer

or shorter:

sudo systemctl enable restart.timer --now

I swear I’ve done that before and every time it restarts it’s not on anymore. I’ve put it in again and we’ll see tomorrow if the restart.timer is still running after the ZimaCube restarts.