Supervisord “exit status 1 not expected” running php script

前端 未结 3 1622
长情又很酷
长情又很酷 2021-01-12 04:16

I\'m having issue try to configure supervisor to run a php script. Running supervisor in debug mode gives me this:

2015-03-09 08:53:06,342 INFO supervisord s         


        
3条回答
  •  孤城傲影
    2021-01-12 05:14

    Try to set startsecs = 0:

    [program:foo]
    command = ls
    startsecs = 0
    autorestart = false
    http://supervisord.org/configuration.html
    

    startsecs

    The total number of seconds which the program needs to stay running after a startup to consider the start successful. If the program does not stay up for this many seconds after it has started, even if it exits with an “expected” exit code (see exitcodes), the startup will be considered a failure. Set to 0 to indicate that the program needn’t stay running for any particular amount of time.

提交回复
热议问题