feat: Daemonize QEMU

* feat: Daemonize QEMU
This commit is contained in:
Kroese
2023-12-28 03:42:06 +01:00
committed by GitHub
parent 06f210846c
commit 08e4084458
6 changed files with 118 additions and 47 deletions

View File

@@ -3,8 +3,8 @@ set -Eeuo pipefail
: ${VM_NET_DEV:='eth0'}
[ ! -f "/run/qemu.pid" ] && echo "QEMU not running yet.." && exit 0
[ -f "/run/qemu.count" ] && echo "QEMU is shutting down.." && exit 1
[ ! -f "/run/qemu.pid" ] && echo "QEMU not running yet.." && exit 0
file="/run/dsm.url"
[ ! -f "$file" ] && echo "DSM has not enabled networking yet.." && exit 1