gitlab module: restart services on failure

Sidqkiq regularly dies due to memory leaks.

+2
+2
nixos/modules/services/misc/gitlab.nix
··· 380 User = cfg.user; 381 Group = cfg.group; 382 TimeoutSec = "300"; 383 WorkingDirectory = "${cfg.packages.gitlab}/share/gitlab"; 384 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\""; 385 }; ··· 404 User = cfg.user; 405 Group = cfg.group; 406 TimeoutSec = "300"; 407 ExecStart = 408 "${cfg.packages.gitlab-workhorse}/bin/gitlab-workhorse " 409 + "-listenUmask 0 "
··· 380 User = cfg.user; 381 Group = cfg.group; 382 TimeoutSec = "300"; 383 + Restart = "on-failure"; 384 WorkingDirectory = "${cfg.packages.gitlab}/share/gitlab"; 385 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\""; 386 }; ··· 405 User = cfg.user; 406 Group = cfg.group; 407 TimeoutSec = "300"; 408 + Restart = "on-failure"; 409 ExecStart = 410 "${cfg.packages.gitlab-workhorse}/bin/gitlab-workhorse " 411 + "-listenUmask 0 "