-
Notifications
You must be signed in to change notification settings - Fork 192
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
remove stale daemon pid in status check #3118
Conversation
The problem with this approach is that it is difficult to determine the source of the problem when a call to daemon times out. Note that the |
I didn't find situation where the pid file was removed unjustly. My PR suggests also adding |
Ah you are right, I glossed fast over the diff and interpreted it exactly the other way around. |
I think this is not an urgent PR, but it can be confusing for users, especially beginners. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @unkcpz!
In the long term, if we realise we are starting to add this in too many places, we should probably find a better way to avoid putting the call in many places. But for now this a useful fix for user and we approve it.
Added stale pid removal to `verdi status` and `verdi daemon status`
Added stale pid removal to `verdi status` and `verdi daemon status`
The problem (#2795) that stale daemon PID not found after reboot when daemon is not stop correctly also occurred in command
verdi daemon status
andverdi status
.Also calling function
delete_stale_pid_file
in verdi status check.Or maybe it is better to print tips on how to solve the problem in
get_daemon_status
rather than remove files automatically?