git.iko.soy/typeable/nixpkgs
on master help sign in
gitlab module: restart services on failure

Sidqkiq regularly dies due to memory leaks.

commite082cfcaaac3e34e1a8a171f80f32cfd6440b521 authorFranz Pletz <fpletz@fnordicwalking.de> dateFri 12 Aug 2016, 19:17 (10 years ago) parentc2302f2
1 file changed+2
nixos/modules/services/misc/gitlab.nix+2
nixos/modules/services/misc/gitlab.nix+2
@@ -380,6 +380,7 @@ in {
380380 User = cfg.user;
381381 Group = cfg.group;
382382 TimeoutSec = "300";
383+ Restart = "on-failure";
383384 WorkingDirectory = "${cfg.packages.gitlab}/share/gitlab";
384385 ExecStart="${cfg.packages.gitlab.env}/bin/bundle exec \"sidekiq -q post_receive -q mailers -q system_hook -q project_web_hook -q gitlab_shell -q common -q default -e production -P ${cfg.statePath}/tmp/sidekiq.pid\"";
385386 };
@@ -404,6 +405,7 @@ in {
404405 User = cfg.user;
405406 Group = cfg.group;
406407 TimeoutSec = "300";
408+ Restart = "on-failure";
407409 ExecStart =
408410 "${cfg.packages.gitlab-workhorse}/bin/gitlab-workhorse "
409411 + "-listenUmask 0 "