How can I get the output of postfix status from inside a bash script?.So the following does work: pidof masterīut this is not very verbose and I'm not sure if this is a reliable way to test if postfix is running. I finally found a way to test if postfix is running by getting the process name of PID: 11996, which is "master". This is the console output: postfix/postfix-script: the Postfix mail system is running: PID: 11996 Then I tried to get the postfix status: POSTFIX_LOCATION=/var/packages/MailServer/target/sbin/postfix # location of postfixĮcho "Error: No status output from postfix"Įlif ] thenīut even though the status is reported to the console, the result variable stays empty. My first attempt was simply trying pidof postfix, which doesn't work. ![]() I'm searching for a reliable way to test if postfix is running from inside a bash script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |