Yes, see https://mmonit.com/monit/documentation/monit.html#SERVICE-RESTART-LIMIT
Best regards, Martin > On 18 Sep 2016, at 00:44, jul <[email protected]> wrote: > > Hello monit list > > When a daemon fails to restart after one or twice attemps by monit, is there > a way to execute a special command for subsequent restart? > > for example, let's say apache is failing to start but it was working before > (and we assume no internal change). > I would want to start it and at the same time, start a 15sec capture with > tcpdump and sysdig, eventually collect with logs for corresponding period. > > How to do that? > > It seems a bit like core processing examples > https://mmonit.com/wiki/Monit/ConfigurationExamples#corelin > but the hard part is how to do other parallel commands while restarting. > > > Thanks > > Jul > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
