When Mailscanner is in Milter mode (MTA = msmail) the service status reports a different process count for postfix.
For consistency I suggest to use the same ps command as without Milter mode.
On linux systems (e.g. Ubuntu 22.04.1 LTS) there is a header line from ps output.
This should be cut, otherwise postfix is reported as running when it isn't and the process count is too high by 1.
Also, with Mailscanner's "Milter Dispatcher = postfork" and the system idling, the status displays:
"MSMilter: YES | 0 children", which is confusing.
I suggest to display the process count when it is 1.
When Mailscanner is in Milter mode (MTA = msmail) the service status reports a different process count for postfix. For consistency I suggest to use the same ps command as without Milter mode.
On linux systems (e.g. Ubuntu 22.04.1 LTS) there is a header line from ps output. This should be cut, otherwise postfix is reported as running when it isn't and the process count is too high by 1.
Also, with Mailscanner's "Milter Dispatcher = postfork" and the system idling, the status displays: "MSMilter: YES | 0 children", which is confusing. I suggest to display the process count when it is 1.