
Change-Id: I78f4c93d4d196e5d870a39256cb90dcbec41da45 Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
19 lines
382 B
Plaintext
19 lines
382 B
Plaintext
description "Start up the Trove Guest Agent"
|
|
|
|
start on runlevel [2345]
|
|
stop on runlevel [!2345]
|
|
|
|
respawn
|
|
respawn limit 2 2
|
|
|
|
exec guest-agent --config-file /etc/trove/guest-agent.conf
|
|
|
|
post-start script
|
|
PID=`status guest-agent | grep -Eoi '([0-9]+)$' | head -n1`
|
|
echo $PID > /var/run/guest-agent.pid
|
|
end script
|
|
|
|
post-stop script
|
|
rm -f /var/run/guest-agent.pid
|
|
end script
|