try another reboot approach

This commit is contained in:
Chris Wanstrath 2025-10-06 20:07:43 -07:00
parent 966d14a5b1
commit bdac753f8f
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
// Reboot the whole computer! Careful! // Reboot the whole computer! Careful!
export default async function reboot() { export default async function reboot() {
setTimeout(async () => await Bun.$`sudo reboot`, 1000) setTimeout(async () => await Bun.$`/sbin/reboot`, 1000)
return { return {
text: "Rebooting... This will take about 10 seconds.", text: "Rebooting... This will take about 10 seconds.",

View File

@ -12,8 +12,8 @@ Environment=NOSE_DIR=/home/nose/nose/
ExecStart=/home/nose/.bun/bin/bun start ExecStart=/home/nose/.bun/bin/bun start
Restart=always Restart=always
RestartSec=1 RestartSec=1
CapabilityBoundingSet=CAP_NET_BIND_SERVICE CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SYS_BOOT
AmbientCapabilities=CAP_NET_BIND_SERVICE AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_SYS_BOOT
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target