would it be possible for Monit to only restart a service if the service is enabled ?

Issue #16 wontfix
Jorge Adrian Salaices created an issue

This is particularly useful when a process associated with a service is disabled via the chkconfig command.

Say if process atd is NOT running and chkconfig is set to not start the service at the current runlevel

atd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

Can Monit be instructed to have it not restart ?

Its implied course that this would only be applicable with processes associated with an actual /etc/init.d/<service>

Comments (5)

  1. Tildeslash repo owner

    Integration of Monit configuration with chkconfig is out of Monit scope. Each linux distribution and other platforms have their own service management interfaces ... chkconfig is just "one of".

  2. Jorge Adrian Salaices reporter

    Thanks so much for considering it, I can see how that would be lots of work for a wide variety of OS's .. I have solved my problem by writing a service wrapper that can take a switch that will only execute the service start if enabled.

  3. Log in to comment