I want to start the elasticsearch service on a machine, originally I was going to do this using pallet.actions.service but the documentation says this is now deprecated in favour of pallet.crate.service/service.
However I cannot find any guide to use it to simply start an initd service that is already installed on the node.
Below is my first attempt at getting an es node running using the old service function. Unfortunately I couldn't get this to start the service either, it installed elasticsearch but did not run the service. When I was playing around with this I noticed that it was deprecated:
(def elasticsearch-server
(server-spec
:extends [(javacrate/server-spec {})]
:phases
{:install (plan-fn
(add-es-source)
(package-manager :update)
(package "elasticsearch")
(service "elasticsearch" :action :start))}))