Open deepy opened 2 years ago
file in repo does not have it: https://github.com/logdna/logdna-agent-v2/blob/master/linux/logdna-agent.service#L12 agent version?
I'm getting this with both 3.6.0-1
and 3.5.2-1
There is however a file in the repo which does have it, and it's in packaging
https://github.com/logdna/logdna-agent-v2/blob/master/packaging/linux/logdna-agent.service#L12
ic. your systemd version?
systemd --version
219
too old - 2015. that StateDirectory is needed for non-root service when /var/lib/logdna has to be created by systemd. will look into this. thanks.
Update:
@dkhokhlov Does this mean that we cannot use the latest version with AWS instances installing over yum? The info for Elastic Beanstalk would then also be not working?
@TJDev if you install the package on Amazon Linux you need to manually modify the package-provided systemd service to be able to start it
I have created a gist based on the former one for old logdna-agent with the requirements for AL2 (create directory, remove StateDirectory). Work in a test environment for me.
https://gist.github.com/TJDev/df2262535895190599ff96d43a28c329
The packaged systemd service includes
StateDirectory
which doesn't seem to exist on Amazon Linux 2