The issue is that the command I use to start sunspot, bundle exec sunspot-solr start, itself spawns a solr server, which is the actual process that needs to be monitored, not the original command. If I just set the start command, then it continually tries to respawn sunspot-solr start, which is unnecessary because the underlying solr process is still running. Any idea how I can properly monitor this? Thanks

有帮助吗?

解决方案

The start command forks Sunspot into the background. You may prefer to use the run command instead, which leaves Sunspot's bundled Solr server running in the foreground. That should be more compatible with tools like Foreman, Upstart and god.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top