gitlab: Enable puma's systemd notify support

This commit is contained in:
talyz 2021-08-27 16:58:06 +02:00
parent 99387372d5
commit 3dd17ae22f
No known key found for this signature in database
GPG Key ID: 2DED2151F4671A2B
5 changed files with 16 additions and 2 deletions

View File

@ -1353,9 +1353,8 @@ in {
procps
gnupg
];
serviceConfig = {
Type = "simple";
Type = "notify";
User = cfg.user;
Group = cfg.group;
TimeoutSec = "infinity";

View File

@ -534,3 +534,5 @@ gem 'webauthn', '~> 2.3'
gem 'ipaddress', '~> 0.8.3'
gem 'parslet', '~> 1.8'
gem 'sd_notify'

View File

@ -1160,6 +1160,7 @@ GEM
addressable (>= 2.3.5)
faraday (> 0.8, < 2.0)
scientist (1.6.0)
sd_notify (0.1.1)
securecompare (1.0.0)
seed-fu (2.3.7)
activerecord (>= 3.1)
@ -1611,6 +1612,7 @@ DEPENDENCIES
rugged (~> 1.1)
sanitize (~> 5.2.1)
sassc-rails (~> 2.1.0)
sd_notify
seed-fu (~> 2.3.7)
selenium-webdriver (~> 3.142)
sentry-raven (~> 3.1)

View File

@ -4925,6 +4925,16 @@
};
version = "1.6.0";
};
sd_notify = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0c9imnjbakx25r2n7widfp00s19ndzmmwax761mx5vbwm9nariyb";
type = "gem";
};
version = "0.1.1";
};
securecompare = {
groups = ["default"];
platforms = [];

View File

@ -135,6 +135,7 @@ def update_rubyenv():
f.write(repo.get_file('Gemfile.lock', rev))
with open(rubyenv_dir / 'Gemfile', 'w') as f:
original = repo.get_file('Gemfile', rev)
original += "\ngem 'sd_notify'\n"
f.write(re.sub(r".*mail-smtp_pool.*", "", original))
subprocess.check_output(['bundle', 'lock'], cwd=rubyenv_dir)