8 if [ -n "$LIBVIRTD_CONFIG" ]
10 LIBVIRTD_CONFIG_ARGS
="--config $LIBVIRTD_CONFIG"
13 PID
=`pidof -o %PPID /usr/sbin/libvirtd`
16 stat_busy
"Starting libvirtd"
17 export RADVD
=/usr
/sbin
/radvd
18 for i
in /var
/run
/libvirt
/qemu
/var
/run
/libvirt
/lxc
/var
/run
/libvirt
/uml
/var
/run
/libvirt
/network
; do
19 [ -d $i ] || mkdir
-p $i
22 mkdir
-p /var
/{cache
,run
}/libvirt
23 rm -rf /var
/cache
/libvirt
/*
24 KRB5_KTNAME
=$KRB5_KTNAME \
25 /usr
/sbin
/libvirtd
--daemon $LIBVIRTD_CONFIG_ARGS $LIBVIRTD_ARGS
35 stat_busy
"Stopping libvirtd"
37 kill $PID &> /dev
/null
38 rm -rf /var
/cache
/libvirt
/*
39 rm -f /var
/run
/libvirtd.pid
54 stat_busy
"Reloading libvirtd configuration"
55 [ ! -z "$PID" ] && kill -HUP $PID &> /dev
/null
63 echo $
"Usage: $0 {start|stop|restart|reload}"