octavia/elements/amphora-agent/install.d/amphora-agent-source-install/prometheus-proxy.service
Michael Johnson 7afe2fb243 Fix prometheus-proxy systemd service
This patch changes the inter-dependency between the prometheus-proxy
systemd service unit and the amphora-agent service. This will stop
systemd from shutting down the prometheus proxy should the amphora
agent be stopped.

Change-Id: I30c6c5809cc8568159feca193f38f62ca09874fd
2022-02-25 22:48:42 +00:00

15 lines
372 B
Desktop File

[Unit]
Description=OpenStack Octavia Prometheus Proxy
After=network.target syslog.service amphora-agent.service
Wants=amphora-agent.service
[Service]
ExecStart=/usr/local/bin/prometheus-proxy
KillMode=mixed
Restart=always
ExecStartPost=/bin/sh -c "echo $MAINPID > /var/run/prometheus-proxy.pid"
PIDFile=/var/run/prometheus-proxy.pid
[Install]
WantedBy=multi-user.target