Add file logging for rsync xinetd service

Because rsyslog does not run inside rsync container,
its log messages are lost.

Added log rotation for new rsync.log file.

Change-Id: Ie67018966315642526fa9a112590a559632d0118
Closes-bug: #1414604
This commit is contained in:
Matthew Mosesohn 2015-02-12 16:33:16 +03:00
parent 345a98b34d
commit a001e23e44
3 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,7 @@ service rsync
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
server_args = --daemon --log-file=/var/log/rsync.log
cps = 512 10
flags = IPv4
per_source = UNLIMITED

View File

@ -36,6 +36,7 @@
"/var/log/docker-logs/mcollective.log"
"/var/log/docker-logs/messages"
"/var/log/docker-logs/ostf*.log"
"/var/log/docker-logs/rsync.log"
{
# This file is used for daily log rotations, do not use size options here
sharedscripts

View File

@ -36,6 +36,7 @@
"/var/log/docker-logs/mcollective.log"
"/var/log/docker-logs/messages"
"/var/log/docker-logs/ostf*.log"
"/var/log/docker-logs/rsync.log"
{
# This file is used for hourly log rotations, use (min)size options here
sharedscripts