sudo env "PATH=$PATH" npm install -g solr-proxy
There's a bug in the current init script that prevents the proxy from stopping. Add tobacco to the end of the line that stops the proxy. In other words, change this:
runuser -c "$DAEMON stop $SERVER"
...to this:
runuser -c "$DAEMON stop $SERVER" tobacco
sudo /sbin/service solr-proxy stop
Now we want to use the new proxy executable rather than the old one.
Change this:
SERVER="/usr/local/bin/solr-security-proxy"
...to this:
SERVER="/usr/local/bin/solr-proxy"
sudo env "PATH=$PATH" npm uninstall -g solr-security-proxy
sudo /sbin/service solr-proxy start