Wietse Venema via Postfix-users wrote in <4y6wzc64lqzj...@spike.porcupine.org>: |Steffen Nurpmeso via Postfix-users: |> postfix_status() { |> # As postfix does not use stdout but console, no |> # postfix__init |> # ${prog} status 2>&1 | |I think that was fixed in Postfix 3.8. | |20230308 | | Cleanup: the postfix(1) and postlog(1) commands now produce | stderr output even when stderr is not connected to a terminal. | This eliminates an inconsistency, and makes these programs | easier to use in some automated procedures. The canonical | example is to capture output from "postmulti -p status" to | figure out which instances are or are not running. Files: | postfix/postfix.c, postlog/postlog.c.
Yes, it seems fine now! postfix_status() { # Wietse Venema: I think that was fixed in Postfix 3.8. [..20230308..] if postconf -d mail_version | awk '{split($3, v, "\\."); exit(v[1] + 0 <= 3 && v[2] + 0 < 8)}'; then postfix__init ${prog} status 2>&1 else name=postfix eval $(postconf daemon_directory data_directory | tr -d '[ ]') prog=${daemon_directory}/master pid=${data_directory}/master.lock daemons__stat_and_dog n fi } Thank you! --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt) | |And in Fall, feel "The Dropbear Bard"s ball(s). | |The banded bear |without a care, |Banged on himself for e'er and e'er | |Farewell, dear collar bear _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org