balenaOS predefine shutdown times

Hi all,

I’m fairly new to all this, I’ve setup balenaSound on my raspberry pi 3 a+, and I’m just wondering if there is a way to schedule a time to shutdown the pi, similar to how you can in just the standard raspberry pi desktop via a cron function. Is this possible in balenaOS? I know the pi’s can usually handle being on for extended periods of time, but I’d just like to make it undiscoverable at certain times.

Thanks in advance!


there is unfortunately no cron daemon on the host balenaOS.

You can easily add a container running cron to your application and instruct it to shutdown the device as you need. The actual shutdown command has to be sent via d-bus, we have an example (for reboot but shutdown works analogically) in our docs: Communicate outside the container - Balena Documentation

How did you install balenaSound? Was this from balenaHub, using balena CLI or something else?


Thanks for your reply, I installed it via the cloud deploy.