Skip to content

Commit

Permalink
Merge pull request #592 from iotaledger/fix/featurenet-maxlogs
Browse files Browse the repository at this point in the history
Avoid filling feature network disks with logs
  • Loading branch information
alexsporn authored Dec 4, 2023
2 parents fc84c91 + 317fd15 commit 4e3cf41
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deploy/ansible/roles/iota-core-node/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- name: restart rsyslog
service:
name: rsyslog
state: restarted
8 changes: 8 additions & 0 deletions deploy/ansible/roles/iota-core-node/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
async: 300
poll: 5

- name: Set log rotation for a maximum size of 5GB
lineinfile:
path: /etc/logrotate.d/rsyslog
regexp: '^\{\n\s*rotate'
insertbefore: '^\{\n\s*rotate'
line: ' maxsize 5G'
notify: restart rsyslog

- name: Create node directory
file:
path: /opt/iota-core
Expand Down

0 comments on commit 4e3cf41

Please sign in to comment.