projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dsa-restart-all-idle-postgres: and do not keep fds open
[mirror/dsa-puppet.git]
/
modules
/
postgres
/
files
/
dsa-restart-all-idle-postgres
diff --git
a/modules/postgres/files/dsa-restart-all-idle-postgres
b/modules/postgres/files/dsa-restart-all-idle-postgres
index
33f48c2
..
b057803
100755
(executable)
--- 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
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
done
-
-disown -a