From 55e279605960a8cc4f2d5dbb6e299b56927711d9 Mon Sep 17 00:00:00 2001 From: ace Date: Thu, 21 Mar 2024 00:23:58 +0300 Subject: [PATCH] make service restart on failure and increase open file limit --- tasks/main.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/main.yaml b/tasks/main.yaml index 995e76c..92499e7 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -70,6 +70,8 @@ User={{ pgbouncer_systemd_user }} Group= Group={{ pgbouncer_systemd_group }} + LimitNOFILE=1048576 + Restart=on-failure - name: Enable log rotation with logrotate copy: