File openstack-monasca-log-agent.service of Package openstack-monasca-log-agent
#
# monasca-log-agent systemd service
#
[Unit]
Description=monasca-log-agent collects logs via logstash
Documentation=https://github.com/FujitsuEnablingSoftwareTechnologyGmbH/logstash-output-monasca_api
After=network.target
ConditionPathExists=/etc/monasca-log-agent/agent.conf
[Service]
Type=simple
User=root
Group=root
Nice=19
LimitNOFILE=16384
StandardError=journal
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/opt/logstash/bin/logstash agent -f /etc/monasca-log-agent/agent.conf -l /var/log/monasca-log-agent/agent.log
[Install]
WantedBy=multi-user.target