Work around slow socket appearance. FIXME!
This commit is contained in:
parent
be70ac6984
commit
09ffead361
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ Description=share home folders via virtiofsd
|
|||
Type=exec
|
||||
ExecStartPre=/usr/bin/mkdir -p /run/virtiofs/
|
||||
ExecStart=/usr/bin/sh -c 'v="%i"; soc="$${v%%:*}"; usr="$${v##*:}"; exec /usr/local/bin/virtiofsd --announce-submounts --socket-path="/run/virtiofs/$${soc}.sock" --shared-dir "/lmn/media/$${usr}"'
|
||||
ExecStartPost=/usr/bin/sleep 1
|
||||
ExecStartPost=/usr/bin/chmod 755 /run/virtiofs/
|
||||
ExecStartPost=/usr/bin/sh -c 'v="%i"; soc="$${v%%:*}"; usr="$${v##*:}"; chown "$$usr" "/run/virtiofs/$${soc}.sock"'
|
||||
ExecStopPost=/usr/bin/sh -c 'v="%i"; soc="$${v%%:*}"; rm "/run/virtiofs/$${soc}.sock"'
|
||||
|
|
Loading…
Add table
Reference in a new issue