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