Skip to content
Snippets Groups Projects
Commit a5d0aa7c authored by Ben Gamari's avatar Ben Gamari :turtle:
Browse files

Fix it

parent 84847b28
No related branches found
No related tags found
1 merge request!2Fix it
......@@ -14,10 +14,18 @@ in
};
config = {
users.users.ghc-test-tracking = {
description = "GitLab test tracking service";
isSystemUser = true;
group = "ghc-test-tracking";
};
users.groups.ghc-test-tracking = {};
systemd.services.gitlab-test-tracking = {
description = "GitLab test tracking service";
after = [ "postgresql.service" ];
requires = [ "postgresql.service" ];
serviceConfig.User = "ghc-test-tracking";
script = ''
${service}/bin/gitlab-test-tracking-service \
--gitlab-root=https://gitlab.${config.ghc.rootDomain} \
......@@ -26,7 +34,6 @@ in
--conn-string="postgresql:///ghc_test_tracking"
'';
wantedBy = [ "multi-user.target" ];
serviceConfig.DynamicUser = true;
};
};
}
......@@ -14,16 +14,8 @@ in
};
config = {
users.users.ghc-test-tracking = {
description = "GitLab test tracking service";
isSystemUser = true;
group = "ghc-test-tracking";
};
users.groups.ghc-test-tracking = {};
systemd.services.gitlab-triage-label-service = {
description = "GitLab label triage service";
serviceConfig.User = "ghc-test-tracking";
script = ''
${service}/bin/gitlab-triage-label-service \
--gitlab-root=https://gitlab.${config.ghc.rootDomain} \
......@@ -31,6 +23,7 @@ in
--port=${toString config.services.ghc-triage.listenPort}
'';
wantedBy = [ "multi-user.target" ];
serviceConfig.DynamicUser = true;
};
};
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment