From 37f4889851165410d923bf82afeca4672a3e8ffb Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Mon, 27 Jun 2016 10:34:29 +0000 Subject: nixos/libvirt: Remove non-functional service libvirt-guests It doesn't have a start script, so it hasn't worked at all in a long time. --- nixos/modules/virtualisation/libvirtd.nix | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'nixos/modules/virtualisation') diff --git a/nixos/modules/virtualisation/libvirtd.nix b/nixos/modules/virtualisation/libvirtd.nix index 67fbb8263b05..98828c280bf9 100644 --- a/nixos/modules/virtualisation/libvirtd.nix +++ b/nixos/modules/virtualisation/libvirtd.nix @@ -162,34 +162,6 @@ in ''; }; - systemd.services."libvirt-guests" = { - description = "Libvirt Virtual Machines"; - - wantedBy = [ "multi-user.target" ]; - wants = [ "libvirtd.service" ]; - after = [ "libvirtd.service" ]; - - restartIfChanged = false; - - path = with pkgs; [ gettext libvirt gawk ]; - - preStart = '' - mkdir -p /var/lock/subsys -m 755 - ${pkgs.libvirt}/etc/rc.d/init.d/libvirt-guests start || true - ''; - - postStop = '' - export PATH=${pkgs.gettext}/bin:$PATH - export ON_SHUTDOWN=${cfg.onShutdown} - ${pkgs.libvirt}/etc/rc.d/init.d/libvirt-guests stop - ''; - - serviceConfig = { - Type = "oneshot"; - RemainAfterExit = true; - }; - }; - users.extraGroups.libvirtd.gid = config.ids.gids.libvirtd; }; -- cgit 1.4.1