try another reboot approach
This commit is contained in:
parent
966d14a5b1
commit
bdac753f8f
|
|
@ -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.",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user