Files
trove/integration/scripts/files/elements/guest-agent/install.d/guest-agent-source-install/guest-agent.conf
Ivan Anfimov 5937eb6cb5 Replaced usage outdate egrep to grep
Change-Id: I78f4c93d4d196e5d870a39256cb90dcbec41da45
Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
2025-07-18 12:59:05 +00:00

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