max-mapper/monu

read PIDs even if they arent in config.json

max-mapper opened this issue · 1 comments

say you add a process with name 'foo' to config.json, start it, and then go to config.json and remove 'foo'.

now you are in a state where there is a foo.pid and foo.mon.pid, and the foo processes are likely running

IMO any PIDs that aren't referenced by 'config.json' should get SIGTERM'd and then deleted

I agree that you should sigterm any PIDs deferenced by config.json