From 4ef872d1ef3bdf3466b7d2e8883c1beff2a7d914 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 8 Feb 2018 15:34:10 +0100 Subject: [PATCH] dsa-restart-all-idle-postgres: and do not keep fds open --- modules/postgres/files/dsa-restart-all-idle-postgres | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/postgres/files/dsa-restart-all-idle-postgres b/modules/postgres/files/dsa-restart-all-idle-postgres index 33f48c2ce..b05780303 100755 --- a/modules/postgres/files/dsa-restart-all-idle-postgres +++ b/modules/postgres/files/dsa-restart-all-idle-postgres @@ -47,7 +47,6 @@ handle_cluster() { pg_lsclusters -h | while read version name port status; do echo "$status" | grep -q --word-regexp online || continue - handle_cluster $version $name $port & + handle_cluster $version $name $port < /dev/null > /dev/null >&2 & + disown done - -disown -a -- 2.20.1