tag 826148 +moreinfo thanks On Thu, Jun 02, 2016 at 06:52:39PM +0200, Mario Lipinski wrote: > when a service such as openssh-server is restarted by monit, systemdctl > status lists the restarted service as failed. While using /etc/init.d > scripts interactively, the start/stop commands are redirected to systemd. > This is not the case when used via monit. I would suggest calling the > "service" command instead that should issue the correct service control > commands.
1) monit doesn't support systemd. If you are ready to support this package for systemd - please do. 2) "This is not the case when used via monit." - and why it's the monit problem, but not systemd*? 3) I would suggest calling the "service". - I was already suggested before. The reason for using more low-level instruments is that this prevents from using service dependencies from LSB headers. If you use monit - probably it does make sense to use also it to handle dependencies. At least, by default. See also https://bugs.debian.org/791667, where it was discussed. I'm open to reconsider this, but please avoid using systemd in your argumentation.