gitlab: Enable puma's systemd notify support
(cherry picked from commit 3dd17ae22f17fb2f5f3bcf99437fe899d727beac)
This commit is contained in:
parent
2572e2550a
commit
698186588f
@ -1247,9 +1247,8 @@ in {
|
|||||||
procps
|
procps
|
||||||
gnupg
|
gnupg
|
||||||
];
|
];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "notify";
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
TimeoutSec = "infinity";
|
TimeoutSec = "infinity";
|
||||||
|
@ -534,3 +534,5 @@ gem 'webauthn', '~> 2.3'
|
|||||||
gem 'ipaddress', '~> 0.8.3'
|
gem 'ipaddress', '~> 0.8.3'
|
||||||
|
|
||||||
gem 'parslet', '~> 1.8'
|
gem 'parslet', '~> 1.8'
|
||||||
|
|
||||||
|
gem 'sd_notify'
|
||||||
|
@ -1160,6 +1160,7 @@ GEM
|
|||||||
addressable (>= 2.3.5)
|
addressable (>= 2.3.5)
|
||||||
faraday (> 0.8, < 2.0)
|
faraday (> 0.8, < 2.0)
|
||||||
scientist (1.6.0)
|
scientist (1.6.0)
|
||||||
|
sd_notify (0.1.1)
|
||||||
securecompare (1.0.0)
|
securecompare (1.0.0)
|
||||||
seed-fu (2.3.7)
|
seed-fu (2.3.7)
|
||||||
activerecord (>= 3.1)
|
activerecord (>= 3.1)
|
||||||
@ -1611,6 +1612,7 @@ DEPENDENCIES
|
|||||||
rugged (~> 1.1)
|
rugged (~> 1.1)
|
||||||
sanitize (~> 5.2.1)
|
sanitize (~> 5.2.1)
|
||||||
sassc-rails (~> 2.1.0)
|
sassc-rails (~> 2.1.0)
|
||||||
|
sd_notify
|
||||||
seed-fu (~> 2.3.7)
|
seed-fu (~> 2.3.7)
|
||||||
selenium-webdriver (~> 3.142)
|
selenium-webdriver (~> 3.142)
|
||||||
sentry-raven (~> 3.1)
|
sentry-raven (~> 3.1)
|
||||||
|
@ -4925,6 +4925,16 @@
|
|||||||
};
|
};
|
||||||
version = "1.6.0";
|
version = "1.6.0";
|
||||||
};
|
};
|
||||||
|
sd_notify = {
|
||||||
|
groups = ["default"];
|
||||||
|
platforms = [];
|
||||||
|
source = {
|
||||||
|
remotes = ["https://rubygems.org"];
|
||||||
|
sha256 = "0c9imnjbakx25r2n7widfp00s19ndzmmwax761mx5vbwm9nariyb";
|
||||||
|
type = "gem";
|
||||||
|
};
|
||||||
|
version = "0.1.1";
|
||||||
|
};
|
||||||
securecompare = {
|
securecompare = {
|
||||||
groups = ["default"];
|
groups = ["default"];
|
||||||
platforms = [];
|
platforms = [];
|
||||||
|
@ -135,6 +135,7 @@ def update_rubyenv():
|
|||||||
f.write(repo.get_file('Gemfile.lock', rev))
|
f.write(repo.get_file('Gemfile.lock', rev))
|
||||||
with open(rubyenv_dir / 'Gemfile', 'w') as f:
|
with open(rubyenv_dir / 'Gemfile', 'w') as f:
|
||||||
original = repo.get_file('Gemfile', rev)
|
original = repo.get_file('Gemfile', rev)
|
||||||
|
original += "\ngem 'sd_notify'\n"
|
||||||
f.write(re.sub(r".*mail-smtp_pool.*", "", original))
|
f.write(re.sub(r".*mail-smtp_pool.*", "", original))
|
||||||
|
|
||||||
subprocess.check_output(['bundle', 'lock'], cwd=rubyenv_dir)
|
subprocess.check_output(['bundle', 'lock'], cwd=rubyenv_dir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user