Skip to content
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

check_identity cannot be disabled #222

Open
grimm26 opened this issue Sep 24, 2018 · 4 comments
Open

check_identity cannot be disabled #222

grimm26 opened this issue Sep 24, 2018 · 4 comments

Comments

@grimm26
Copy link
Contributor

grimm26 commented Sep 24, 2018

I set check_identity false on a process and its pidfile is still monitored for changes. I tested by echoing a new PID into its pidfile:

24.09.2018 16:18:12 WARN  -- [helios:helios] check_alive: pid_file (/var/run/helios/helios.pid) changed by itself (<4189> => <4188>), reverting to <4189> (the pid_file is controlled by eye)

Shouldn't setting check_identity to false prevent this behavior?

@kostya
Copy link
Owner

kostya commented Sep 24, 2018

check_identity should disable this, i not see in code anything else.
are you sure that config loaded and process have this option? (eye x -c)
btw, why process change pid_file?

@grimm26
Copy link
Contributor Author

grimm26 commented Sep 24, 2018

deployment@stg:~$ eye xinfo -c  | grep check_identity                                                                                                                                                                             
  :check_identity: true                                                                                                                                                                                                                  
  :check_identity_period: 60                                                                                                                                                                                                             
  :check_identity_grace: 60
deployment@stg:~$ eye l
Config loaded!
deployment@stg:~$ eye xinfo -c  | grep check_identity                                                                                                                                                                             
  :check_identity: false
deployment@stg:~$ echo 4188 > /var/run/helios/helios.pid ; eye trace
....
24.09.2018 16:50:49 WARN  -- [helios:helios] check_alive: pid_file (/var/run/helios/helios.pid) changed by itself (<4189> => <4188>), reverting to <4189> (the pid_file is controlled by eye)

@grimm26
Copy link
Contributor Author

grimm26 commented Sep 24, 2018

As for why change process PID file, this is related to #187

I have a process that does not daemonize itself but does its own graceful restart on a USR2 signal. It replaces itself with a new process and manages its own PID file.

@kostya
Copy link
Owner

kostya commented Sep 24, 2018

yes, i finded, this is not related to check_identity, this just how managed pid_file with daemonize true, need to think what to do here, maybe add another option: trust_pid_file_change true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants