Schedule reboot

Hi,

I understand there is no cron in ubuntu core. How do I schedule a daily reboot?

systemd/Timers ?

yes, you’d create a snap with a one liner script like:

#! /bin/sh

dbus-send --system --print-reply \
    --dest=org.freedesktop.login1 /org/freedesktop/login1 \
    "org.freedesktop.login1.Manager.Reboot" boolean:true

make it a daemon, add the shutdown plug and add a timer