* Added an Upstart job for the Xen control daemon (xend).

svn path=/nixos/trunk/; revision=23781
This commit is contained in:
Eelco Dolstra 2010-09-14 11:22:50 +00:00
parent 8a6fad83f4
commit 72d9235992

View File

@ -57,6 +57,8 @@ let cfg = config.virtualisation.xen; in
# Domain 0 requires a pvops-enabled kernel.
boot.kernelPackages = pkgs.linuxPackages_2_6_32_xen;
boot.kernelModules = [ "xen_evtchn" "xen_gntdev" ];
# The radeonfb kernel module causes the screen to go black as soon
# as it's loaded, so don't load it.
boot.blacklistedKernelModules = [ "radeonfb" ];
@ -80,6 +82,21 @@ let cfg = config.virtualisation.xen; in
fi
'';
jobs.xend =
{ description = "Xen control daemon";
startOn = "stopped udevtrigger";
path =
[ pkgs.bridge_utils pkgs.gawk pkgs.iproute pkgs.nettools
pkgs.utillinux pkgs.bash pkgs.xen pkgs.pciutils pkgs.procps
];
preStart = "${pkgs.xen}/sbin/xend start";
postStop = "${pkgs.xen}/sbin/xend stop";
};
};
}