/etc/init/ovirt-guest-agent.conf is in ovirt-guest-agent 1.0.13.dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | # ovirt-guest-agent - oVirt guest agent
#
description "oVirt guest agent"
start on runlevel [2345]
stop on runlevel [!2345]
# Do not setuid ovirtagent, because pre-start needs root permission to touch
# file under /run. If we setuid ovirtagent, pre-start will be run as
# ovirtagent, and fail to touch and chown, then cause the ovirt-guest-agent
# service fail to start.
# setuid ovirtagent
# setgid ovirtagent
chdir /usr/share/ovirt-guest-agent
console log
pre-start script
touch /var/run/ovirt-guest-agent.pid
chown ovirtagent:ovirtagent /var/run/ovirt-guest-agent.pid
chown ovirtagent:ovirtagent /var/log/ovirt-guest-agent
chown ovirtagent:ovirtagent /var/log/ovirt-guest-agent/ovirt-guest-agent.log ||:
end script
exec sudo -u ovirtagent -g ovirtagent python /usr/share/ovirt-guest-agent/ovirt-guest-agent.py
post-stop script
rm -f /var/run/ovirt-guest-agent.pid
end script
|