Understood stop should be the correct way to stop the servers. I use
kill -9 to emulate when one of the servers is crashed without a
reason. The main problem is that monit brings up the server with start
command, not restart command. This is where I found the problem.
Anyway, I could also reproduce this problem with just two constructive
start command:
[root@localhost railstest]# thin start -s 2
[root@localhost railstest]# ls -al tmp/pids/
total 32
drwxr-xr-x 2 root root 4096 Jan 29 17:50 .
drwxr-xr-x 6 root root 4096 Jan 28 21:02 ..
-rw-r--r-- 1 root root 5 Jan 29 17:50 thin.3000.pid
-rw-r--r-- 1 root root 5 Jan 29 17:50 thin.3001.pid
[root@localhost railstest]# thin start -s 2
[root@localhost railstest]# ls -al tmp/pids/
total 16
drwxr-xr-x 2 root root 4096 Jan 29 17:50 .
drwxr-xr-x 6 root root 4096 Jan 28 21:02 ..
Just FYI on top of the previous test case.
Regards,
Leon