ITRS-Group / monitor-merlin

Module for Effortless Redundancy and Loadbalancing In Naemon
https://itrs-group.github.io/monitor-merlin/
GNU General Public License v2.0
22 stars 14 forks source link

Don't log output to stdout/err during package installation #122

Closed jacobbaungard closed 3 years ago

jacobbaungard commented 3 years ago

It is best practice not to show output of various commands executed in i.e post steps of an RPM file. With this commit we ensure output from the mon log commands are hidden. Sometimes this would generate quite a large output cluttering the update log significantly.

Fixes: MON-12848


Previously the first thing we did in the post install step, was to stop the service. However at this point we installed a new systemd service file on the system, causing systemctl to warn about the updated file. To ensure we don't get this warning, we move the daemon-reload call up to before we stop the service