Fix trove guest agent logrotate
* The logrotate file owner should be root * Log file path is /var/log/trove/trove-guestagent.log Change-Id: I669fedc76aa79d7bfc1e4e64684adc4a89a3a15d
This commit is contained in:
parent
f90594889c
commit
3b846ad235
@ -16,7 +16,8 @@ for folder in "/var/lib/trove" "/etc/trove" "/etc/trove/certs" "/etc/trove/conf.
|
||||
chown -R ${GUEST_USERNAME}:root ${folder}
|
||||
done
|
||||
|
||||
install -D -g root -o ${GUEST_USERNAME} -m 0644 ${SCRIPTDIR}/guest-agent.logrotate /etc/logrotate.d/guest-agent
|
||||
# The logrotate file owner should be root or user with uid 0.
|
||||
install -D -g root -o root -m 0644 ${SCRIPTDIR}/guest-agent.logrotate /etc/logrotate.d/guest-agent
|
||||
|
||||
# Create a virtual environment (with dependencies installed) for guest agent service
|
||||
/usr/bin/python3 -m venv ${GUEST_VENV}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/var/log/guest-agent.log {
|
||||
/var/log/trove/trove-guestagent.log {
|
||||
daily
|
||||
rotate 10
|
||||
missingok
|
||||
@ -6,9 +6,4 @@
|
||||
compress
|
||||
delaycompress
|
||||
sharedscripts
|
||||
postrotate
|
||||
# Signal name shall not have the SIG prefix in kill command
|
||||
# http://pubs.opengroup.org/onlinepubs/9699919799/utilities/kill.html
|
||||
kill -s USR1 $(cat /var/run/guest-agent.pid)
|
||||
endscript
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user