qemush/etc/runit/sv/virtiofsd/run

13 lines
251 B
Bash
Executable file

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