Service runit virtiofsd : mise à jour

This commit is contained in:
Ahurac 2024-03-09 00:07:51 +01:00
parent 0f9b26937b
commit ab9adc1680
2 changed files with 16 additions and 2 deletions

8
etc/runit/sv/virtiofsd/finish Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh -e
# Read configuration
sourceconf() { [ -r "$1" ] && . "$1"; }
sourceconf ./conf
# Delete socket and PID file
exec rm -f "$socket" "${socket}.pid"

View file

@ -1,7 +1,13 @@
#!/bin/sh -e
# Read configuration
sourceconf() {
[ -r "$1" ] && . "$1"
}
sourceconf ./conf
# Start a virtiofsd sharing qemu shared dir
exec /usr/lib/virtiofsd \
--shared-dir ~qemu/shared \
--socket-path /run/virtiofsd.sock \
--shared-dir "$shared_dir" \
--socket-path "$socket" \
--socket-group qemu