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
19 lines
402 B
Plaintext
19 lines
402 B
Plaintext
description "Start up the Octavia Amphora Agent"
|
|
|
|
start on started certs-ramfs
|
|
stop on runlevel [!2345]
|
|
|
|
respawn
|
|
respawn limit 2 2
|
|
|
|
exec amphora-agent --config-file /etc/octavia/amphora-agent.conf
|
|
|
|
post-start script
|
|
PID=`status amphora-agent | egrep -oi '([0-9]+)$' | head -n1`
|
|
echo $PID > /var/run/amphora-agent.pid
|
|
end script
|
|
|
|
post-stop script
|
|
rm -f /var/run/amphora-agent.pid
|
|
end script
|