Skip to content

Commit

Permalink
altered systemd settings for stability. check for local xnodeos clone…
Browse files Browse the repository at this point in the history
… in PreStart cmd.
  • Loading branch information
harrys522 committed Jul 5, 2024
1 parent dd27f53 commit d398bc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repo/modules/services/openmesh/xnode/admin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ in
wants = [ "network-online.target" ];

serviceConfig = {
ExecStartPre = ''/bin/sh -c 'test -d ${cfg.stateDir}/xnodeos/.git || ${lib.getExe pkgs.git} clone --branch feature/xnode-admin-service https://github.com/openmesh-network/xnodeos ${cfg.stateDir}/xnodeos' '';
ExecStart = ''${lib.getExe cfg.package} --remote ${cfg.remoteDir} ${cfg.stateDir}'';
ExecStartPre = ''-${lib.getExe pkgs.git} clone --branch feature/xnode-admin-service https://github.com/openmesh-network/xnodeos ${cfg.stateDir}/xnodeos'';
ExecCondition = ''-${lib.getExe pkgs.git} pull --branch feature/xnode-admin-service https://github.com/openmesh-network/xnodeos ${cfg.stateDir}/xnodeos'';
Restart = "always";
RestartSec = 5;
WorkingDirectory = cfg.stateDir;
StateDirectory = "openmesh-xnode-admin";
StateDirectoryMode = "0775";
Expand Down

0 comments on commit d398bc9

Please sign in to comment.