octoprint-containers/octoprint/bin/reboot.sh

12 lines
297 B
Bash
Executable File

#!/bin/bash
# Reboot host
echo "*** Rebooting OctoPrint server"
DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket \
dbus-send \
--system \
--print-reply \
--dest=org.freedesktop.systemd1 \
/org/freedesktop/systemd1 \
org.freedesktop.systemd1.Manager.Reboot