octavia/elements/amphora-agent/install.d/amphora-agent-source-install/amphora-agent.service
Michael Johnson 1900ee71a5 Fix a potential race condition with certs-ramfs
There is a potential race condition in the start order for the
amphora-agent service and the certs-ramfs service.
This patch configures an explict ordering for the services.

Change-Id: I8e449b19af72d72f6effd52e0a2debb5754a19b3
Story: 2006823
Task: 37396
2019-11-11 13:45:35 -08:00

16 lines
426 B
Desktop File

[Unit]
Description=OpenStack Octavia Amphora Agent
After=network.target syslog.service certs-ramfs.service
Requires=certs-ramfs.service
Wants=syslog.service
[Service]
ExecStart=/usr/local/bin/amphora-agent --config-file /etc/octavia/amphora-agent.conf
KillMode=mixed
Restart=always
ExecStartPost=/bin/sh -c "echo $MAINPID > /var/run/amphora-agent.pid"
PIDFile=/var/run/amphora-agent.pid
[Install]
WantedBy=multi-user.target