• Jérome Perrin's avatar
    grid/utils/setRunning: detect the case where pid has been recycled · 19b3eac1
    Jérome Perrin authored
    It can happen that slapos can be terminated without removing the pid
    file, and another long running process using the same pid from the one
    in the pid file is running, which cause slapos node to never run.
    
    This makes setRunning a little bit clever, by ignoring the process
    unless it also has `slapos` in its name.
    19b3eac1
test_grid_utils.py 8.11 KB