aurae-runtime / auraed

Secure mTLS and gRPC backed runtime daemon. Alternative to systemd. Written in Rust.
https://aurae.io/auraed
Apache License 2.0
60 stars 11 forks source link

Handle Power Button Event #31

Closed Vincinator closed 1 year ago

Vincinator commented 1 year ago

Hi Community,

this PR adds a power button listener.

Test

Run auraed in a VM as pid1:

make build-container
make kernel
make initramfs

# create `vm-br0` bridge on your machine:
make network

# run auraed in a VM as pid 1:
make virsh-start virsh-console virsh-stop

# exit VM console with Ctrl+]

Send a shutdown signal:

make virsh-shutdown 
# before the vm is powered off, a log entry shows the received input event

Todos

krisnova commented 1 year ago

Closes https://github.com/aurae-runtime/auraed/issues/21