Giter VIP home page Giter VIP logo

Comments (14)

mmmint avatar mmmint commented on August 20, 2024 2

Ok thanks, now it works! Had an old source...
Is there a way to get the version from supervisord? I really think its a nice feature to compare and know where you are...

from supervisord.

ochinchina avatar ochinchina commented on August 20, 2024 1

now the log will be appended to the previous log file if it's max size does not exceed the limit.

from supervisord.

ochinchina avatar ochinchina commented on August 20, 2024

any suggestion on the error message you want to get?

from supervisord.

Siecje avatar Siecje commented on August 20, 2024

Maybe capture the stdout from when the command was executed?

from supervisord.

ochinchina avatar ochinchina commented on August 20, 2024

The stdout/stderr can be redirect to file with program configure item "stdout_logfile"/"stderr_logfile". Also you can redirect the program stdout/stderr to syslog.

from supervisord.

Siecje avatar Siecje commented on August 20, 2024

Okay there was no output, just a return code of 126.

Maybe the return code can be in the error message? For example, "fail to start program: return code 126".

from supervisord.

ochinchina avatar ochinchina commented on August 20, 2024

exit status is added in the log, please try it

from supervisord.

mmmint avatar mmmint commented on August 20, 2024

There is something which bothers me. When a program exits with an exception, while having redirected stdout_logfile or/and stderr_logfile, the program restarts as expected, but the log files are reinitialized instead of appending the content to it. This makes almost impossible to see what happens with the programs. Any hints on how to sort this out?

from supervisord.

mmmint avatar mmmint commented on August 20, 2024

Thanks for your answer, but that doesn’t happen to me... They get truncated everytime the app restarts... Since when is this implemented (version)? Is there a way to get the version...because ./supervisord -v doesnt work... How do you configure the max size limit?
Thanks in advance.

from supervisord.

ochinchina avatar ochinchina commented on August 20, 2024

What is your "stdout_logfile"? it is in absolute path or relative path?

The max size is configured with parameter stdout_logfile_maxbytes/stderr_logfile_maxbytes. If this parameter is not configured, its default size is 50M.

from supervisord.

ochinchina avatar ochinchina commented on August 20, 2024

Have you sync your source code to the latest?

from supervisord.

mmmint avatar mmmint commented on August 20, 2024

I tried, but now it can't even compile...and sadly go is not my primary language of use...
I first execute:

go get -u -v -d  github.com/ochinchina/supervisord

and then

GOOS=linux GOARCH=arm go build github.com/ochinchina/supervisord
# github.com/ochinchina/supervisord
/home/user/go/src/github.com/ochinchina/supervisord/set_user_id.go:10: unknown field 'NoSetGroups' in struct literal of type syscall.Credential

from supervisord.

ochinchina avatar ochinchina commented on August 20, 2024

Please use golang 1.9 to compile it

from supervisord.

ochinchina avatar ochinchina commented on August 20, 2024

it is a good idea for supervisor to print a version or build no.
I will add a command line command to print the version later.

from supervisord.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.