gitlab module: restart services on failure
Sidqkiq regularly dies due to memory leaks.
This commit is contained in:
parent
c2302f2f45
commit
e082cfcaaa
@ -380,6 +380,7 @@ in {
|
|||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
TimeoutSec = "300";
|
TimeoutSec = "300";
|
||||||
|
Restart = "on-failure";
|
||||||
WorkingDirectory = "${cfg.packages.gitlab}/share/gitlab";
|
WorkingDirectory = "${cfg.packages.gitlab}/share/gitlab";
|
||||||
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\"";
|
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\"";
|
||||||
};
|
};
|
||||||
@ -404,6 +405,7 @@ in {
|
|||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
TimeoutSec = "300";
|
TimeoutSec = "300";
|
||||||
|
Restart = "on-failure";
|
||||||
ExecStart =
|
ExecStart =
|
||||||
"${cfg.packages.gitlab-workhorse}/bin/gitlab-workhorse "
|
"${cfg.packages.gitlab-workhorse}/bin/gitlab-workhorse "
|
||||||
+ "-listenUmask 0 "
|
+ "-listenUmask 0 "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user