mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-23 17:32:57 +02:00
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:
committed by
Michael Tremer
parent
15c80cec1b
commit
272ac1b454
49
src/initscripts/init.d/libvirtd
Normal file
49
src/initscripts/init.d/libvirtd
Normal 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
|
||||
Reference in New Issue
Block a user