[mc-clj] make state dir writable
This commit is contained in:
parent
037c54cee4
commit
042b603397
|
@ -222,6 +222,7 @@ in {
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
WorkingDirectory = stateDir;
|
WorkingDirectory = stateDir;
|
||||||
|
ExecStartPre = "${startScript}";
|
||||||
ExecStart = let
|
ExecStart = let
|
||||||
mem = "${toString worldOpts.allocated-memory}G";
|
mem = "${toString worldOpts.allocated-memory}G";
|
||||||
memFlags = [ "-Xms${mem}" "-Xmx${mem}" ];
|
memFlags = [ "-Xms${mem}" "-Xmx${mem}" ];
|
||||||
|
@ -242,6 +243,7 @@ in {
|
||||||
RestrictAddressFamilies = [ "AF_INET" "AF_INET6" ];
|
RestrictAddressFamilies = [ "AF_INET" "AF_INET6" ];
|
||||||
RestrictRealtime = true;
|
RestrictRealtime = true;
|
||||||
RestrictNamespaces = true;
|
RestrictNamespaces = true;
|
||||||
|
ReadWritePaths = [ stateDir ];
|
||||||
};
|
};
|
||||||
}) cfg.worlds;
|
}) cfg.worlds;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue