1900ee71a5
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
16 lines
426 B
Desktop File
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
|