Skip to content

grid/utils/setRunning: detect the case where pid has been recycled

Jérome Perrin requested to merge fix/pidfile-recycled into master

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.

Merge request reports