2022-12-08 08:09:51 +00:00
|
|
|
#!/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
|
2022-12-09 18:27:37 +00:00
|
|
|
importas -D "/etc/libvirt/virt${NAME}d.conf" CONFIG DEFAULTCONFIG
|
2022-12-08 08:09:51 +00:00
|
|
|
|
|
|
|
s6-envdir -I /etc/s6/env/libvirt.${NAME}
|
|
|
|
importas -D $DEFAULTCONFIG CONFIG CONFIG
|
|
|
|
|
|
|
|
emptyenv
|
|
|
|
export PATH $PATH
|
|
|
|
|
2022-12-09 18:27:37 +00:00
|
|
|
exec virt${NAME}d -f $CONFIG
|