diff --git a/bin/reboot.ts b/bin/reboot.ts index 4b1d3b8..37750a5 100644 --- a/bin/reboot.ts +++ b/bin/reboot.ts @@ -1,6 +1,6 @@ // Reboot the whole computer! Careful! export default async function reboot() { - setTimeout(async () => await Bun.$`sudo reboot`, 1000) + setTimeout(async () => await Bun.$`/sbin/reboot`, 1000) return { text: "Rebooting... This will take about 10 seconds.", diff --git a/scripts/nose-pluto.service b/scripts/nose-pluto.service index 365b8b2..7341da1 100644 --- a/scripts/nose-pluto.service +++ b/scripts/nose-pluto.service @@ -12,8 +12,8 @@ Environment=NOSE_DIR=/home/nose/nose/ ExecStart=/home/nose/.bun/bin/bun start Restart=always RestartSec=1 -CapabilityBoundingSet=CAP_NET_BIND_SERVICE -AmbientCapabilities=CAP_NET_BIND_SERVICE +CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SYS_BOOT +AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_SYS_BOOT [Install] WantedBy=multi-user.target