mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-11-16 23:13:41 +08:00
feat: Use websocket for status messages (#1051)
This commit is contained in:
11
src/socket.sh
Normal file
11
src/socket.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
path="/run/shm/msg.html"
|
||||
|
||||
inotifywait -m "$path" |
|
||||
while read -r fp event fn; do
|
||||
case "${event,,}" in
|
||||
"modify" ) echo -n "s: " && cat "$path" ;;
|
||||
esac
|
||||
done
|
||||
Reference in New Issue
Block a user