Service runit virtiofsd : mise à jour
This commit is contained in:
parent
0f9b26937b
commit
ab9adc1680
2 changed files with 16 additions and 2 deletions
8
etc/runit/sv/virtiofsd/finish
Executable file
8
etc/runit/sv/virtiofsd/finish
Executable 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"
|
|
@ -1,7 +1,13 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
# Read configuration
|
||||||
|
sourceconf() {
|
||||||
|
[ -r "$1" ] && . "$1"
|
||||||
|
}
|
||||||
|
sourceconf ./conf
|
||||||
|
|
||||||
# Start a virtiofsd sharing qemu shared dir
|
# Start a virtiofsd sharing qemu shared dir
|
||||||
exec /usr/lib/virtiofsd \
|
exec /usr/lib/virtiofsd \
|
||||||
--shared-dir ~qemu/shared \
|
--shared-dir "$shared_dir" \
|
||||||
--socket-path /run/virtiofsd.sock \
|
--socket-path "$socket" \
|
||||||
--socket-group qemu
|
--socket-group qemu
|
||||||
|
|
Loading…
Reference in a new issue