-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uwsgi return zero status code even if it hasn't been run #195
Comments
You may want to try --daemonize2 that daemonize only after app loading (and combined with --need-app will return an exit code on app loading error instead of going in dynamic mode) |
Thank you, it works. But should I delete pid file manually in my rc script or is there any option for that?
But master process creates this file with root owner I can't write it later. |
use --pidfile2 it postpone the pidfile creation. The --vacuum option will clear pidfile and unix sockets, you can try with it. |
Can we close this issue? |
Thank you. I've managed to run server with --pidfile2, --daemonize2, --need-app options and get what I want. But I'm still having "Permission denied" issue when running from different user (--uid, --gid). Can't open pid file. |
After running uwsgi in daemon mode,
returns 0 even if server hasn't been run (port is busy, no permission to open logs, etc) but pid file is created successfully.
I'd like to check exit code and delete pid file in this case.
The text was updated successfully, but these errors were encountered: