Enable mirrorlist-server logging

With the logs from the mirrorlist-server logging it is possible
to create country/repository/architecture statistics.

The code which creates the actual statistics is partially already
included into mirrormanager.

Signed-off-by: Adrian Reber <adrian@lisas.de>
This commit is contained in:
Adrian Reber 2015-11-12 09:08:27 +00:00 committed by Adam Williamson
parent 04c6a4fbf8
commit 8b8606a0d6
3 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,5 @@
.include /usr/lib/systemd/system/mirrorlist-server.service
[Service]
# systemd needs an empty ExecStart= to be able to overwrite ExecStart=
ExecStart=
ExecStart=/usr/bin/python2 /usr/share/mirrormanager2/mirrorlist_server.py --debug -l /var/log/mirrormanager/mirrorlist.log

View file

@ -0,0 +1,3 @@
---
- name: reload systemd service files
command: systemctl daemon-reload

View file

@ -80,5 +80,16 @@
owner=root group=root mode=0755
tags:
- hotfix
- name: make a /var/log/mirrormanager dir for logs
file: dest=/var/log/mirrormanager/ state=directory owner=mirrormanager group=mirrormanager mode=0755
tags:
- mirrorlist2
- name: copy systemd service file in for mirrorlist-server
copy: src=mirrorlist-server.service dest=/etc/systemd/system/mirrorlist-server.service
notify:
- reload systemd service files
- restart mirrorlist-server
tags:
- mirrorlist2