]>
git.ipfire.org Git - people/mfischer/ipfire-2.x.git/blob - src/initscripts/packages/libvirtd
2 ########################################################################
3 # Begin $rc_base/init.d/libvirtd
5 # Description : libvirtd init script
7 # Authors : Jonatan Schlag - jonatan.schlag@ipfire.org
13 ########################################################################
20 boot_mesg
"Load required kernel modules for Libvirt"
21 modprobe tun vhost_net
24 # Enable required cgroup controllers
25 if [ -d "/sys/fs/cgroup" ]; then
26 echo "+cpu +io" > /sys
/fs
/cgroup
/cgroup.subtree_control
29 boot_mesg
"Starting Libvirt Daemon..."
30 loadproc
/usr
/sbin
/libvirtd
-d
34 boot_mesg
"Stopping Libvirt Daemon..."
35 killproc
/usr
/sbin
/libvirtd
45 statusproc
/usr
/sbin
/libvirtd
49 echo "Usage: $0 {start|stop|restart|status}"
54 # End $rc_base/init.d/libvirtd