
Merge source and RHEL elements, allowing both source and package based installations. Allow amphora agent install from distribution packages (not limited to RHEL) Add a new option to diskimage-create.sh script to do so (default is kept to source installation from Octavia git tree) For now, amphorae built with distribution packages will have SELinux (when available) running in permissive mode. Made the rebind-sshd element generic to streamline the script Use POSIX syntax for logrotate kill command Change-Id: I391b2a95d54c7b9fd8f31d3e2c136ff9cc3451f1
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
|