mailwatch / MailWatch

MailWatch for MailScanner is a web-based front-end to MailScanner
http://mailwatch.org/
GNU General Public License v2.0
115 stars 66 forks source link

improvements for service status display #1260

Closed dneuhaeuser closed 1 year ago

dneuhaeuser commented 1 year ago

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.

shawniverson commented 1 year ago

@dneuhaeuser Testing PR, will post results.

dneuhaeuser commented 1 year ago

sorry, did not wanted to put this additional commit here but in a separate PR...