author | Alberto Bertogli
<albertito@blitiri.com.ar> 2020-06-07 12:04:06 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2020-06-07 12:04:06 UTC |
parent | b4b300307b505e6bcb251034033ea56453ae6593 |
.gitignore | +2 | -2 |
etc/logrotate.d/gofer | +13 | -0 |
diff --git a/.gitignore b/.gitignore index f73a217..aa87b41 100644 --- a/.gitignore +++ b/.gitignore @@ -8,8 +8,8 @@ !.gitignore # The binaries. -gofer -test/util/exp +/gofer +/test/util/exp # Configuration and certificates, to prevent accidents. *.yaml diff --git a/etc/logrotate.d/gofer b/etc/logrotate.d/gofer new file mode 100644 index 0000000..3e72cc0 --- /dev/null +++ b/etc/logrotate.d/gofer @@ -0,0 +1,13 @@ +/var/log/gofer/*.log { + weekly + missingok + rotate 12 + compress + delaycompress + notifempty + sharedscripts + postrotate + systemctl reload-or-try-restart gofer + endscript +} +