Hi there,
We’re wanting to be able to gracefully shutdown and wake up our BalenaOS Intel NUC devices via ethernet.
We’ve enabled:
- Wake on Lan in the bios
- Set
802-3-ethernet.wake-on-lan
tomagic
usingnmcli
When we shutdown those devices via shutdown now
in the HostOS terminal or via the Balena cloud API, the device still powers off the Network Interface, so we can’t start it via a magic packet.
But if we suspend the device with the command systemctl suspend
via the HostOS terminal, we can re-wake it with a magic packet. The only problem here is that the system isn’t shutdown gracefully, it’s just instantly suspended, so we’re not sure if this is safe to then pull the power?
Questions:
- Is there a shutdown command we can send to the device to keep the Network Interface powered on that also gracefully shutdown the OS?
- How can we send the
systemctl suspend
command remotely via either the Cloud API or Supervisor API?