summaryrefslogtreecommitdiffstats
path: root/abs/core/func/logrotate-func.conf
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-10-11 16:09:29 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-10-11 16:09:29 (GMT)
commit9c04fff12f59373af8582714b89a3fd3d18b4081 (patch)
tree1ff75877892580c71393a3200b8a92a9683328de /abs/core/func/logrotate-func.conf
parent2b83a2379bcd1be13d6e221baafb56e6f66dcbd4 (diff)
downloadlinhes_pkgbuild-9c04fff12f59373af8582714b89a3fd3d18b4081.zip
linhes_pkgbuild-9c04fff12f59373af8582714b89a3fd3d18b4081.tar.gz
linhes_pkgbuild-9c04fff12f59373af8582714b89a3fd3d18b4081.tar.bz2
func: add logrotate
refs #853
Diffstat (limited to 'abs/core/func/logrotate-func.conf')
-rw-r--r--abs/core/func/logrotate-func.conf14
1 files changed, 14 insertions, 0 deletions
diff --git a/abs/core/func/logrotate-func.conf b/abs/core/func/logrotate-func.conf
new file mode 100644
index 0000000..0160bdc
--- /dev/null
+++ b/abs/core/func/logrotate-func.conf
@@ -0,0 +1,14 @@
+/var/log/func/audit.log {
+ missingok
+ notifempty
+ rotate 0
+ compress
+ size 512k
+ postrotate
+ if [ -f /service/funcd ]; then
+ sv restart funcd
+ fi
+ endscript
+}
+
+