[Pkg-erlang-commits] r1668 - in yaws/trunk/debian: . conf logrotate

sgolovan at alioth.debian.org sgolovan at alioth.debian.org
Sun Aug 17 11:56:49 UTC 2014


Author: sgolovan
Date: 2014-08-17 11:56:49 +0000 (Sun, 17 Aug 2014)
New Revision: 1668

Added:
   yaws/trunk/debian/logrotate/
   yaws/trunk/debian/logrotate/yaws
Modified:
   yaws/trunk/debian/changelog
   yaws/trunk/debian/conf/yaws.conf
   yaws/trunk/debian/control
   yaws/trunk/debian/yaws.dirs
   yaws/trunk/debian/yaws.install
Log:
[yaws]
  * Switched to the well-known logrotate tool to rotate the YAWS log files
    from its internal rotator which rotates logs only based on their size.


Modified: yaws/trunk/debian/changelog
===================================================================
--- yaws/trunk/debian/changelog	2014-08-17 11:23:05 UTC (rev 1667)
+++ yaws/trunk/debian/changelog	2014-08-17 11:56:49 UTC (rev 1668)
@@ -1,8 +1,9 @@
-yaws (1.98-4) UNRELEASED; urgency=low
+yaws (1.98-4) unstable; urgency=low
 
-  * NOT RELEASED YET
+  * Switched to the well-known logrotate tool to rotate the YAWS log files
+    from its internal rotator which rotates logs only based on their size.
 
- -- Sergei Golovan <sgolovan at debian.org>  Mon, 12 May 2014 13:32:24 +0400
+ -- Sergei Golovan <sgolovan at debian.org>  Sun, 17 Aug 2014 15:54:29 +0400
 
 yaws (1.98-3) unstable; urgency=low
 

Modified: yaws/trunk/debian/conf/yaws.conf
===================================================================
--- yaws/trunk/debian/conf/yaws.conf	2014-08-17 11:23:05 UTC (rev 1667)
+++ yaws/trunk/debian/conf/yaws.conf	2014-08-17 11:56:49 UTC (rev 1668)
@@ -88,8 +88,9 @@
 
 
 # Logs are wrap logs
+# Wrap size zero means the YAWS doesn't rotate them, logrotate does.
 
-log_wrap_size = 1000000
+log_wrap_size = 0
 
 
 # Possibly resolve all hostnames in logfiles so webalizer

Modified: yaws/trunk/debian/control
===================================================================
--- yaws/trunk/debian/control	2014-08-17 11:23:05 UTC (rev 1667)
+++ yaws/trunk/debian/control	2014-08-17 11:56:49 UTC (rev 1668)
@@ -16,7 +16,7 @@
 Architecture: all
 Provides: httpd, httpd-cgi
 Depends: erlang-yaws (>= ${binary:Version}), adduser, ssl-cert, lsb-base (>= 3.0-6), ${misc:Depends}
-Suggests: yaws-doc, yaws-chat, yaws-mail, yaws-wiki, yaws-yapp
+Suggests: yaws-doc, yaws-chat, yaws-mail, yaws-wiki, yaws-yapp, logrotate
 Description: High performance HTTP 1.1 webserver written in Erlang
  Yaws is a high performance HTTP 1.1 webserver written in Erlang. It is a 
  multithreaded webserver where one Erlang light weight process is used to

Added: yaws/trunk/debian/logrotate/yaws
===================================================================
--- yaws/trunk/debian/logrotate/yaws	                        (rev 0)
+++ yaws/trunk/debian/logrotate/yaws	2014-08-17 11:56:49 UTC (rev 1668)
@@ -0,0 +1,9 @@
+/var/log/yaws/*.access /var/log/yaws/*.auth /var/log/yaws/report.log {
+	weekly
+	missingok
+	rotate 12
+	compress
+	delaycompress
+	ifempty
+	nocreate
+}

Modified: yaws/trunk/debian/yaws.dirs
===================================================================
--- yaws/trunk/debian/yaws.dirs	2014-08-17 11:23:05 UTC (rev 1667)
+++ yaws/trunk/debian/yaws.dirs	2014-08-17 11:56:49 UTC (rev 1668)
@@ -1,3 +1,4 @@
+etc/logrotate.d
 etc/yaws/conf.avail
 etc/yaws/conf.d
 usr/bin

Modified: yaws/trunk/debian/yaws.install
===================================================================
--- yaws/trunk/debian/yaws.install	2014-08-17 11:23:05 UTC (rev 1667)
+++ yaws/trunk/debian/yaws.install	2014-08-17 11:56:49 UTC (rev 1668)
@@ -4,5 +4,6 @@
 debian/conf/yaws.conf				/etc/yaws/
 debian/conf/localhost.conf			/etc/yaws/conf.avail/
 debian/conf/localhost-ssl.conf			/etc/yaws/conf.avail/
+debian/logrotate/yaws				/etc/logrotate.d/
 debian/index.html				/usr/share/yaws/
 www/icons/yaws.gif				/usr/share/yaws/




More information about the Pkg-erlang-commits mailing list