New package libvirt

Libvirt is buidl only on i585 and x86_64 because qemu is build only
on this arches.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Jonatan Schlag
2016-05-07 16:01:13 +02:00
committed by Michael Tremer
parent 15c80cec1b
commit 272ac1b454
11 changed files with 554 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
#!/bin/sh
########################################################################
# Begin $rc_base/init.d/libvirtd
#
# Description : libvirtd init script
#
# Authors : Jonatan Schlag - jonatan.schlag@ipfire.org
#
# Version : 01.00
#
# Notes :
#
########################################################################
. /etc/sysconfig/rc
. $rc_functions
case $1 in
start)
boot_mesg "Load required kernel modules for Libvirt"
modprobe tun
evaluate_retval
boot_mesg "Starting Libvirt Daemon..."
loadproc /usr/sbin/libvirtd -d
;;
stop)
boot_mesg "Stopping Libvirt Daemon..."
killproc /usr/sbin/libvirtd
;;
restart)
$0 stop
sleep 1
$0 start
;;
status)
statusproc /usr/sbin/libvirtd
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/libvirtd