root 31566 0.3 1.7 605684 29820 ? Sl 05:24 0:01 /usr/local/bin/node /usr/local/share/nodeapis/server.js
'v2api' Error testing process id [31566] -- No such process
'v2api' process is not running
Does not exist notification is sent to address@hidden
'v2api' trying to restart
'v2api' stop: /usr/local/bin/nodeinit
'v2api' Error testing process id [31566] -- No such process
/usr/local/bin/nodeinit: line 80: kill: (31566) - No such process
Killed v2 process with pid 31566
monit: pidfile '/var/run/node/v2.pid' does not exist
monit: pidfile '/var/run/node/v2.pid' does not exist
'v2api' start: /usr/local/bin/nodeinit
monit: pidfile '/var/run/node/v2.pid' does not exist
v2 has started with PID: 1150
It complains that the process is not running.
I am using the development version of monit that Martin linked to a couple of days back, with websocket support.
# monit --version
This is Monit version 5.8
Copyright (C) 2001-2014 Tildeslash Ltd. All Rights Reserved.