Fix: xen-bridge systemd service
This commit is contained in:
parent
a6e12c23fc
commit
399b549611
@ -262,16 +262,13 @@ in
|
|||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
before = [ "xen-domains.service" ];
|
before = [ "xen-domains.service" ];
|
||||||
serviceConfig.RemainAfterExit = "yes";
|
serviceConfig.RemainAfterExit = "yes";
|
||||||
serviceConfig.ExecStart = ''
|
serviceConfig.ExecStart = "${pkgs.bridge-utils}/bin/brctl addbr ${cfg.bridge}";
|
||||||
${pkgs.bridge-utils}/bin/brctl addbr ${cfg.bridge}
|
postStart = "${pkgs.inetutils}/bin/ifconfig ${cfg.bridge} up";
|
||||||
${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}";
|
||||||
serviceConfig.ExecStop = ''
|
|
||||||
${pkgs.inetutils}/bin/ifconfig ${cfg.bridge} down
|
|
||||||
${pkgs.bridge-utils}/bin/brctl delbr ${cfg.bridge}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
systemd.services.xen-domains = {
|
systemd.services.xen-domains = {
|
||||||
description = "Xen domains - automatically starts, saves and restores Xen domains";
|
description = "Xen domains - automatically starts, saves and restores Xen domains";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user