forked from digibib/koha-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup cron, logging and logrotate to work with supervisord and docker
- Loading branch information
1 parent
0c6f732
commit 456758b
Showing
4 changed files
with
53 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# /etc/logrotate.d/syslog | ||
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron { | ||
sharedscripts | ||
postrotate | ||
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true | ||
endscript | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# /etc/syslog.conf Configuration file for inetutils-syslogd. | ||
# | ||
# For more information see syslog.conf(5) manpage. | ||
|
||
|
||
auth,authpriv.* /var/log/auth.log | ||
cron.* /var/log/cron.log | ||
*.*;cron,auth,authpriv.none -/var/log/syslog | ||
|
||
# | ||
# Some `catch-all' logfiles. | ||
# | ||
*.=debug;\ | ||
auth,authpriv.none;\ | ||
news.none;mail.none -/var/log/debug | ||
*.=info;*.=notice;*.=warn;\ | ||
auth,authpriv.none;\ | ||
cron,daemon.none;\ | ||
mail,news.none -/var/log/messages | ||
|
||
# | ||
# It was simpler to redirect all logs directly to docker pid 1 file descriptor | ||
# for docker logs to pick it up | ||
# | ||
daemon,cron,auth,mail.*;\ | ||
news.=crit;news.=err;news.=notice;\ | ||
*.=debug;*.=info;\ | ||
*.=notice;*.=warn /proc/1/fd/1 | ||
|