[Pkg-ossec-devel] [SCM] Git repository for pkg-ossec branch, master, updated. f89fb2c00b1a2606035e5cd0e35b4ebe99f049ac

Javier Fernandez-Sanguino jfs at debian.org
Wed Aug 29 16:31:31 UTC 2012


The following commit has been merged in the master branch:
commit 098adfe490ee2f1f501fb08788b5265170100474
Author: Javier Fernandez-Sanguino <jfs at debian.org>
Date:   Wed Aug 29 00:27:50 2012 +0200

    Add logrotate files for the daemons

diff --git a/debian/ossec-hids-client.logrotate b/debian/ossec-hids-client.logrotate
new file mode 100644
index 0000000..6335241
--- /dev/null
+++ b/debian/ossec-hids-client.logrotate
@@ -0,0 +1,15 @@
+/var/log/ossec/*.log {
+        weekly
+	missingok
+	rotate 4
+	compress
+	delaycompress
+	notifempty
+	create 640 ossec adm
+	sharedscripts
+	postrotate
+		if [ -n "`ls /var/run/ossec-hids/*.pid`" ]; then
+			/etc/init.d/ossec-hids-client restart > /dev/null
+		fi
+	endscript
+}
diff --git a/debian/ossec-hids-local.logrotate b/debian/ossec-hids-local.logrotate
new file mode 100644
index 0000000..88714a1
--- /dev/null
+++ b/debian/ossec-hids-local.logrotate
@@ -0,0 +1,15 @@
+/var/log/ossec/*.log {
+        weekly
+	missingok
+	rotate 4
+	compress
+	delaycompress
+	notifempty
+	create 640 ossec adm
+	sharedscripts
+	postrotate
+		if [ -n "`ls /var/run/ossec-hids/*.pid`" ]; then
+			/etc/init.d/ossec-hids-local restart > /dev/null
+		fi
+	endscript
+}
diff --git a/debian/ossec-hids-server.logrotate b/debian/ossec-hids-server.logrotate
new file mode 100644
index 0000000..241e7d5
--- /dev/null
+++ b/debian/ossec-hids-server.logrotate
@@ -0,0 +1,15 @@
+/var/log/ossec/*.log {
+        weekly
+	missingok
+	rotate 4
+	compress
+	delaycompress
+	notifempty
+	create 640 ossec adm
+	sharedscripts
+	postrotate
+		if [ -n "`ls /var/run/ossec-hids/*.pid`" ]; then
+			/etc/init.d/ossec-hids-server restart > /dev/null
+		fi
+	endscript
+}

-- 
Git repository for pkg-ossec



More information about the Pkg-ossec-devel mailing list