ports/main/nnd-s6-services/tmpl/libvirtd

17 lines
399 B
Plaintext
Raw Normal View History

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
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
exec virt${NAME}d -f $CONFIG