3 # hostinfo: Access host information and statistics from virtual machines
6 # description: This daemon allows access to host information from guests.
10 # Required-Start: libvirtd
11 # Required-Stop: libvirtd
13 # Short-Description: Access host information and statistics from virtual machines
14 # Description: This daemon allows access to host information from guests.
17 # Source function library.
18 . /etc/rc.d/init.d/functions
20 exec="/usr/sbin/hostinfod"
22 config="/etc/hostinfo/hostinfo.conf"
24 [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
27 if [ -n "$HOSTINFO_VERBOSE" ]; then
30 if [ -n "$HOSTINFO_CONFIG" ]; then
31 ARGS="$ARGS --config $HOSTINFO_CONFIG"
33 if [ -n "$HOSTINFO_LIBVIRT_URI" ]; then
34 ARGS="$ARGS --connect $HOSTINFO_LIBVIRT_URI"
37 lockfile=/var/lock/subsys/$prog
40 [ -x $exec ] || exit 5
41 [ -f $config ] || exit 6
42 echo -n $"Starting $prog: "
46 [ $retval -eq 0 ] && touch $lockfile
51 echo -n $"Stopping $prog: "
55 [ $retval -eq 0 ] && rm -f $lockfile
77 rh_status >/dev/null 2>&1
103 condrestart|try-restart)
104 rh_status_q || exit 0
108 echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"