You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the pid file is empty pid and read_pid_file methods return 0, because en empty string is converted to zero by to_i. And since process with pid 0 always exists in the system the daemon can't be started or restarted. That also happens for other non-integer content of the pid file
Empty pid file can occur when there's no space left on device. Additionally, number of bytes could be checked to distinguish this case (and maybe delete the pid file?).
The text was updated successfully, but these errors were encountered:
When the pid file is empty
pid
andread_pid_file
methods return0
, because en empty string is converted to zero byto_i
. And since process with pid 0 always exists in the system the daemon can't be started or restarted. That also happens for other non-integer content of the pid fileEmpty pid file can occur when there's no space left on device. Additionally, number of bytes could be checked to distinguish this case (and maybe delete the pid file?).
The text was updated successfully, but these errors were encountered: