diff options
author | Thomas Strobel <ts468@cam.ac.uk> | 2015-06-09 15:08:06 +0200 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2015-06-12 12:52:14 +0200 |
commit | 399b5496119d1f81fb64dc1a86143adade698129 (patch) | |
tree | 77be84b241f293a898294c792b0dff3257acad7a /nixos/modules/virtualisation | |
parent | a6e12c23fcb5890e44094b95a91ddb6c3e9cc081 (diff) |
Fix: xen-bridge systemd service
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r-- | nixos/modules/virtualisation/xen-dom0.nix | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/nixos/modules/virtualisation/xen-dom0.nix b/nixos/modules/virtualisation/xen-dom0.nix index 65efdabb3b4ba..7b5d714622c87 100644 --- a/nixos/modules/virtualisation/xen-dom0.nix +++ b/nixos/modules/virtualisation/xen-dom0.nix @@ -262,16 +262,13 @@ in wantedBy = [ "multi-user.target" ]; before = [ "xen-domains.service" ]; serviceConfig.RemainAfterExit = "yes"; - serviceConfig.ExecStart = '' - ${pkgs.bridge-utils}/bin/brctl addbr ${cfg.bridge} - ${pkgs.inetutils}/bin/ifconfig ${cfg.bridge} up - ''; - serviceConfig.ExecStop = '' - ${pkgs.inetutils}/bin/ifconfig ${cfg.bridge} down - ${pkgs.bridge-utils}/bin/brctl delbr ${cfg.bridge} - ''; + serviceConfig.ExecStart = "${pkgs.bridge-utils}/bin/brctl addbr ${cfg.bridge}"; + postStart = "${pkgs.inetutils}/bin/ifconfig ${cfg.bridge} up"; + serviceConfig.ExecStop = "${pkgs.inetutils}/bin/ifconfig ${cfg.bridge} down"; + postStop = "${pkgs.bridge-utils}/bin/brctl delbr ${cfg.bridge}"; }; + systemd.services.xen-domains = { description = "Xen domains - automatically starts, saves and restores Xen domains"; wantedBy = [ "multi-user.target" ]; |