From: Peter Palfrader Date: Thu, 8 Feb 2018 14:34:10 +0000 (+0100) Subject: dsa-restart-all-idle-postgres: and do not keep fds open X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=4ef872d1ef3bdf3466b7d2e8883c1beff2a7d914;p=mirror%2Fdsa-puppet.git dsa-restart-all-idle-postgres: and do not keep fds open --- 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