DSH web plugin: System menu (Restart / Shutdown) in the sidebar footer. Restart = exit 42, Shutdown = exit 0, loopback-only RPC.
dsh plugin --profile web add github:FrankZhangIronly/dsh-system-control
View the source on GitHub