Grok leader kill leaves the lock the next list still reads
Stopping a shared Grok leader is a file check. The kill command on this build prints a success count and exits 0 while the process is still alive. After the process is gone, the JSON list is still not empty. The row that remains names the lock file. Deleting that file is what makes the list empty.
That split is what a restart script has to close. A zero exit from kill is the count being printed. It is not a clear home. A non-empty list after the process has exited is not a second leader. It is the lock the first leader left behind.