Today I decided to play around with the Google two factor authentication method on one of my Linux VMs hosted in Azure.
What this means?
Well, my idea was to have a VM that I ususaly login with my SSH key automatically, to prompt me for a code that changes every 30 seconds.
Google Authenticator offers just that.
If you have multiple PID files for the same process ( e.g. 1_process_name.pid, 2_process_name.pid, ecc. ) you may have a situation like the one described above.
So, how do you delete the PID files for the processes that are no longer running, without interfering with the running processes?