File wicd-managedstdio.patch of Package wicd
--- wicd/wicd-daemon.py.orig 2021-03-20 17:26:01.000000000 +0100
+++ wicd/wicd-daemon.py 2021-04-12 08:50:25.327347898 +0200
@@ -1884,7 +1884,10 @@
if not os.path.exists(wpath.log):
os.makedirs(wpath.log)
os.chmod(wpath.log, 0755)
- output = ManagedStdio(logpath)
+# output = ManagedStdio(logpath)
+ # Set maxsize to 100MB to prevent rotating since we want logrotate to
+ # do that. Also set maxsave to 15 just to prevent accidental deletion.
+ output = ManagedStdio(logpath, maxsize=100000000, maxsave=15)
if os.path.exists(logpath):
try:
os.chmod(logpath, int(wpath.log_perms, 8))