Open sonfrau opened 6 years ago
This works for me like a charm
[Unit]
Description=Severe_logalerts
After=elasticsearch.service
[Service]
Type=simple
WorkingDirectory=/opt/elastalert
ExecStart=/usr/local/bin/elastalert --verbose --config /opt/elastalert/config.yaml
[Install]
WantedBy=multi-user.target
Could a sample .service file be part of the official ElasticAlert's distribution? Thanks!
One year ago, we installed your 0.1.12 version following this procedure:
We were using ElastAlert successfully set as a systemd service with these settings:
We've upgraded our ElasticSearch from 5.4x to 6.1.1 and then our ElastAlert to 0.1.29.
To upgrade ElastAlert we have applied this command:
sudo -H pip install -U elastalert
From then we cannot start our elastalert.service, we've got this error:
However, if we use the root user on the systemd service definition, the service starts.
Would you give me any clue about this change on the behaviour? We'd like to keep using our regular user.
Thanks and kind regards