From 2e1d831b82ecda2bdeee3d916d3962357ae7a9dc Mon Sep 17 00:00:00 2001 From: f Date: Wed, 16 Aug 2023 12:54:44 -0300 Subject: [PATCH] fix: don't produce login errors --- monit.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monit.conf b/monit.conf index 269efb5..2e42378 100644 --- a/monit.conf +++ b/monit.conf @@ -1,4 +1,4 @@ check process postgresql with pidfile /run/postgresql/pid start program = "/usr/local/bin/postgresqld start" stop program = "/usr/local/bin/postgresqld stop" - if failed port 5432 protocol pgsql for 3 times within 5 cycles then restart + if failed port 5432 protocol pgsql username postgres for 3 times within 5 cycles then restart