bf8aac5561
This patch sets up a seperate log file for the amphora-agent and logrotate to manage this new log. Co-Authored-By: Adam Harwell <flux.adam@gmail.com> Co-Authored-By: Michael Johnson <johnsomor@gmail.com> Change-Id: Ia7b057642d7a567d685d989d1c689d5f3481e73e
19 lines
398 B
Plaintext
19 lines
398 B
Plaintext
description "Start up the Octavia Amphora Agent"
|
|
|
|
start on runlevel [2345]
|
|
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
|