zuul-merger: increase maximum number of opened files

This change tries to mitigate the "Too many open files" error happening
on busy deployment. This is using the same limit as in puppet-zuul
module.

Change-Id: I277865b06b98665e7c577703faf9369b90eec183
This commit is contained in:
Tristan Cacqueray 2016-10-17 18:19:53 +00:00
parent 6f2367e84c
commit e51435759e
2 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,7 @@ do_start()
mkdir -p /var/run/$NAME
chown $USER /var/run/$NAME
ulimit -n 8192
if [ -f $PIDFILE ]; then
return 3
fi

View File

@ -6,6 +6,7 @@ After=syslog.target network.target
Type=simple
User=zuul
Group=zuul
LimitNOFILE=8192
EnvironmentFile=-/etc/sysconfig/zuul-merger
ExecStart=/bin/sh -c "${PREFIX}/bin/zuul-merger -d"