global onreboot not restarting services

Issue #1014 invalid
fusillator created an issue

hi when I use the following global directive the services are not started after a monit deamon startup

set onreboot start

the same behaviour if the directive is not specified as contrary stated in the manual (the start mode should be the default mode)

the bug can be easily reproduced stopping all services and restarting the monit daemon

Whereas there are per process directives it seems to work as expected

check process x
on reboot start

Comments (1)

  1. Tildeslash repo owner

    Stopping all services and restarting monit is not equal to system reboot - monit records the boot time to the state file and when you restart monit, it load the state file and compares the boot time. If it didn't change, monit will keep the previous service state. To simulate reboot, you need to remove the state file after you stop monit.

  2. Log in to comment