sunspot/sunspot — pull request #221 by joerixaop (2012-05-04 13:48:36+00:00)
Title: Allow stopping sunspot-solr service

The use of Shellwords caused the sunspot-solr stop command to stop
working, because the exec call first created an intermediate system
shell, to handle escaped parameters. The registered pid is that of the
shell, terminating the shell does not terminate the java command.

Instead of trying to escape arguments it's possible to pass in arguments
explicitly to exec (and related calls such as system), this avoids the
possibility of an intermediate shell and any problems with escaping