- changed component to Monit
Process is running ,but after timeout "Execution failed"
in config file :
check program docker with path "/var/app/docker_ctl check" every 5 cycles
start program = "/var/app/docker_ctl start" with timeout 120 seconds
stop program = "/var/app/docker_ctl stop"
if status != 0 then restart
in monit log:
[2022-06-14T11:23:04+0800] error : 'docker' failed to start (exit status -1) -- Program '/var/app/docker_ctl start' timed out after 2m
[2022-06-14T11:23:50+0800] debug : 'docker' program started
[2022-06-14T11:23:58+0800] info : 'docker' status succeeded (0)
Comments (4)
-
reporter -
Hello zhoufei,
from my point of view the "docker_ctl start" script does not end in 120s, this is the reason for the timeout.Increase the timeout and check the script will spawn a process. The used start program script should spawn a process that do the work.
With regards,
Lutz -
reporter Yes, in some environments, the execution time of the "docker_ctl start" script exceeds 120 seconds. Increasing the timeout period does not solve the problem.
My opinion is that if the program status is normal after the script execution times out, the normal status should be reported.
-
Hello zhoufei,
are you sure the script will terminate. It seems to me the script is still running after 120s.A start program script should spawn a process that do the work.
Try to execute "docker_ctl start" in a terminal session to see how the scipt work.With regards,
Lutzp.s.
See src/control.c for some more information.
- Log in to comment