Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -56,7 +56,7 @@
|
|||||||
"-L" "${cfg.dataDir}/logs/bootstrap.log"
|
"-L" "${cfg.dataDir}/logs/bootstrap.log"
|
||||||
] ++ lib.optional (!cfg.caseSensitive) "-C1";
|
] ++ lib.optional (!cfg.caseSensitive) "-C1";
|
||||||
|
|
||||||
initScript = pkgs.writeShellScript "p4d-init" ''
|
initScript = ''
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
export P4ROOT=${lib.escapeShellArg cfg.dataDir}
|
export P4ROOT=${lib.escapeShellArg cfg.dataDir}
|
||||||
@@ -334,7 +334,7 @@ in {
|
|||||||
after = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
wants = [ "network-online.target" ];
|
wants = [ "network-online.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
preStart = builtins.readFile initScript;
|
preStart = initScript;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
User = serviceUser;
|
User = serviceUser;
|
||||||
|
|||||||
Reference in New Issue
Block a user