Elastic Agent service is unable to start via init script due to call of unavailable "test" command.
Environment: Ubuntu 14.04 + Agent 7.9.3
Steps to reproduce:
curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-7.9.3-amd64.deb
sudo dpkg -i elastic-agent-7.9.3-amd64.deb
elastic-agent enroll https://DEPLOYMENT_ID.eu-west-1.aws.found.io:443 ENROLL_TOKEN
update-rc.d elastic-agent defaults 95 10
service elastic-agent start
Output:
root@node1:~# service elastic-agent start
Error: unknown command "test" for "elastic-agent"
Run 'elastic-agent --help' for usage.
unknown command "test" for "elastic-agent"
...fail!
I suppose the issue is that init script in agent .deb package calls test instead of inspect method.
line 21 in elastic-agent-7.9.3-amd64.deb -> data.tar.gz -> etc/init.d/elastic-agent
