fix(etna): don't restart minecraft servers every switch
This commit is contained in:
parent
7b078cb32b
commit
273cd44d2c
2 changed files with 4 additions and 5 deletions
|
@ -61,6 +61,6 @@
|
|||
}
|
||||
];
|
||||
|
||||
systemd.services."${backend}-${name}".serviceConfig.TimeoutSec = "300";
|
||||
systemd.services."${backend}-mc-${name}".serviceConfig.TimeoutSec = "300";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -60,14 +60,13 @@ in {
|
|||
systemd.services.restart-minecraft-servers = {
|
||||
wantedBy = ["multi-user.target"];
|
||||
startAt = "*-*-* 05:00:00";
|
||||
restartIfChanged = false;
|
||||
|
||||
script = ''
|
||||
${lib.getExe' pkgs.systemd "systemctl"} restart ${backend}-mc-*.service
|
||||
'';
|
||||
script = "${lib.getExe' pkgs.systemd "systemctl"} restart ${backend}-mc-*.service";
|
||||
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
DynamicUser = true;
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue