Closed clampz closed 4 years ago
Yes, the command does not include the quotes, but that is the intended behavior. exec.Command
expects each provided argument to be a separated element so it properly understands c.Cmd (/opt/bitnami/nginx/scripts/ctl.sh start
) without the quotes.
While gonit is waiting for nginx to start, could you check if the nginx process is running? Does the pid file exists and contain the proper PID? Do you see any error logged in the nginx log?
/opt/bitnami/nginx/logs/error.log
This is only happening at the end of the month and I didn't catch it this time. I'll check at the end of this month!
Closing due to inactivity
gonit.log:
/opt/bitnami/config/monit/conf.d/nginx.conf:
I can test these start/stop and they work. I traced the code in checks.go until I got to line 488 where it says:
Searching for Exec lead me to line 336 where it says:
What is c.Cmd? Does it get substituted without embedded quotes? this could cause an issue with starting:
Thanks