17 lines
397 B
Plaintext
17 lines
397 B
Plaintext
|
#!/bin/execlineb -W
|
||
|
importas -i NAME NAME
|
||
|
|
||
|
s6-envdir -I /etc/s6/env/path
|
||
|
importas -D "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" PATH PATH
|
||
|
|
||
|
s6-envdir -I /etc/s6/env/libvirt
|
||
|
importas -D "/etc/libvirt/virt${NAME}d" CONFIG DEFAULTCONFIG
|
||
|
|
||
|
s6-envdir -I /etc/s6/env/libvirt.${NAME}
|
||
|
importas -D $DEFAULTCONFIG CONFIG CONFIG
|
||
|
|
||
|
emptyenv
|
||
|
export PATH $PATH
|
||
|
|
||
|
exec virt${NAME}d -f $CONFIG -d
|