monasca-agent/packaging/monasca-statsd.service.template
Stefano Canepa a8a2bb845b Removed dependency on supervisor
To support python3 in the near future this was done:

* Removed dependency on supervisor.
* Added template configuration for systemd target that includes all
  services.
* Added templates configuration for systemd service for every single
  service.
* Changed monasca_setup to use the new templates.

In the meanwhile code was formated to cope with pep8 settings and some
other small changes were done to comply with pycodestyle and
pydocstring.

Task: 4126
Story: 2000975

Depends-On: https://review.openstack.org/#/c/566475/

Change-Id: I0d0c4ea41a830581d6b9f247fad6a2dda1f96cbe
2018-06-27 11:28:43 +02:00

15 lines
288 B
Plaintext

[Unit]
Description=Monasca Agent - Statsd
PartOf=monasca-agent.target
After=monasca-forwarder.service
Wants=monasca-forwarder.service
[Service]
Type=simple
User={monasca_user}
Group={monasca_user}
Restart=always
ExecStart={prefix}/bin/monasca-statsd
[Install]
WantedBy=multi-user.target