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:
parent
04c6a4fbf8
commit
8b8606a0d6
3 changed files with 19 additions and 0 deletions
|
@ -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
|
3
roles/mirrormanager/mirrorlist2/handlers/main.yml
Normal file
3
roles/mirrormanager/mirrorlist2/handlers/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- name: reload systemd service files
|
||||
command: systemctl daemon-reload
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue