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 | egrep -oi '([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
|