Skip to content

Commit

Permalink
Properly separate arguments in systemd config
Browse files Browse the repository at this point in the history
  • Loading branch information
plaidfinch committed Jun 30, 2024
1 parent 8cd98f5 commit af6e388
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = ''
${umbrella}/bin/umbrella
${concatStringsSep " " (map (n: "--node ${n}") cfg.nodes)}
${concatStringsSep " " (map (f: "--fallback ${f}") cfg.fallbacks)}
${concatStringsSep " " (map (v: "--validator ${v}") cfg.validators)}
${optionalString (cfg.bind != null) (b: "--bind ${b}")}
${optionalString (cfg.poll != null) (p: "--poll-interval ${p}")}
${umbrella}/bin/umbrella \
${concatStringsSep " " (map (n: "--node ${n}") cfg.nodes)} \
${concatStringsSep " " (map (f: "--fallback ${f}") cfg.fallbacks)} \
${concatStringsSep " " (map (v: "--validator ${v}") cfg.validators)} \
${optionalString (cfg.bind != null) (b: "--bind ${b}")} \
${optionalString (cfg.poll != null) (p: "--poll-interval ${p}")} \
${optionalString (cfg.timeout != null) (c: "--connect-timeout ${c}")}
'';
Restart = "always";
Expand Down

0 comments on commit af6e388

Please sign in to comment.