jamesrwhite / minicron

🕰️ Monitor your cron jobs
GNU General Public License v3.0
2.34k stars 154 forks source link

minicron monitor script on supervisor issue #266

Closed monday41 closed 7 years ago

monday41 commented 7 years ago

I change the supervisor config file like this.

[program:ProcessScript]
command=minicron run "php /data/apps/script.php"
numprocs=1
startsecs = 3
startretries = 5
user=work
stdout_logfile = /data/logs/script.log
stderr_logfile = /data/logs/script.log
redirect_stderr = true
autostart=true
autorestart=true

If this script exited, minicron server can't get the execution info.

I don't know the reason. Do you have any hint for me?

jamesrwhite commented 7 years ago

Does it work correctly outside of supervisor?

monday41 commented 7 years ago

Sorry,It's my mistake. minicron can trace the start time, but it can't trace the finish time. Because when I stop the script by supervisorctl, it just kill the pid.

jamesrwhite commented 7 years ago

👍