Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
added logging service file and logrotate config file
Browse files Browse the repository at this point in the history
  • Loading branch information
r-caamano committed Jan 12, 2024
1 parent e7af0a9 commit a825c97
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions files/scripts/zfwlogs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/var/log/zfw.log {
weekly
maxsize 1G
minsize 500M
rotate 7
compress
delaycompress
missingok
notifempty
dateext
create 644 root root
postrotate
/usr/bin/killall -HUP rsyslogd
endscript
}
13 changes: 13 additions & 0 deletions files/services/zfw-logging.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=zfw-logging
BindsTo=ziti-router.service
After=ziti-router.service

[Service]
User=root
ExecStart=/opt/openziti/bin/zfw -M all -W /var/log/zfw.log
Restart=always
RestartSec=3

[Install]
WantedBy=ziti-router.service

0 comments on commit a825c97

Please sign in to comment.