On Debian 7 I have a custom init.d script to start solr.
init.d
I get this error though:
Starting solr.../etc/init.d/solr: 18: /etc/init.d/solr: daemon: not found failed. See error code for more information.
Fixed with
apt-get install daemon