How can I enable a service like Apache Solr?

To enable a service, add the corresponding line to the /etc/rc.conf file:

solr_enable=YES

This also ensures that the service will start when the system is restarted.

You can start and stop the service using the ` service` command:

sudo service solr start
sudo service solr stop
sudo service solr restart

The available services can be accessed using

service -l

print.