Skip to content

Instantly share code, notes, and snippets.

@trajakovic
Created August 18, 2014 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trajakovic/a61fa122ce78cda674d0 to your computer and use it in GitHub Desktop.
Save trajakovic/a61fa122ce78cda674d0 to your computer and use it in GitHub Desktop.
Daemontools multilog.c max file size override
--- multilog.c.original 2014-08-18 11:48:59.705338651 +0000
+++ multilog.c 2014-08-18 11:49:32.222822787 +0000
@@ -398,7 +398,8 @@
if (script[i][0] == 's') {
scan_ulong(script[i] + 1,&size);
if (size < 4096) size = 4096;
- if (size > 16777215) size = 16777215;
+ //removing constraint of 16M log size
+ //if (size > 16777215) size = 16777215;
}
else if (script[i][0] == 'n') {
scan_ulong(script[i] + 1,&num);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment