Do not override the complete systemd config
using the drop-in config snipper system, we can add configuration to systemd without replacing it, in case the systemd file is changed upstream.
This commit is contained in:
parent
8a9e586794
commit
9f3e44f8c6
3 changed files with 10 additions and 18 deletions
|
@ -1,15 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Outbound fedmsg gateway
|
|
||||||
After=network.target
|
|
||||||
Documentation=http://fedmsg.readthedocs.org/en/latest/commands/
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/usr/bin/fedmsg-gateway
|
|
||||||
Type=simple
|
|
||||||
User=fedmsg
|
|
||||||
Group=fedmsg
|
|
||||||
LimitNOFILE=160000
|
|
||||||
Restart=on-failure
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
2
roles/fedmsg/gateway/files/fs-limits.conf
Normal file
2
roles/fedmsg/gateway/files/fs-limits.conf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[Service]
|
||||||
|
LimitNOFILE=160000
|
|
@ -23,10 +23,15 @@
|
||||||
notify:
|
notify:
|
||||||
- restart fedmsg-gateway
|
- restart fedmsg-gateway
|
||||||
|
|
||||||
- name: bump fs limits by installing our own systemd service file
|
- name: create systemd drop-in directory
|
||||||
|
file: >
|
||||||
|
dest=/etc/systemd/system/fedmsg-gateway.service.d
|
||||||
|
state=directory
|
||||||
|
|
||||||
|
- name: bump fs limits by installing a drop-in systemd config
|
||||||
copy: >
|
copy: >
|
||||||
src=fedmsg-gateway.service
|
src=fs-limits.conf
|
||||||
dest=/usr/lib/systemd/system/fedmsg-gateway.service
|
dest=/etc/systemd/system/fedmsg-gateway.service.d/fs-limits.conf
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- fedmsg/gateway
|
- fedmsg/gateway
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue