]> git.pld-linux.org Git - packages/awffull.git/commitdiff
- copied from webalizer, not tested yet
authorPaweł Gołaszewski <blues@pld-linux.org>
Tue, 27 Jun 2006 11:06:59 +0000 (11:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    awffull.cron -> 1.1
    awffull.crontab -> 1.1
    awffull.sysconfig -> 1.1

awffull.cron [new file with mode: 0644]
awffull.crontab [new file with mode: 0644]
awffull.sysconfig [new file with mode: 0644]

diff --git a/awffull.cron b/awffull.cron
new file mode 100644 (file)
index 0000000..d67335a
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+AWFFULL_OPTS=""
+[ -f /etc/sysconfig/awffull ] && . /etc/sysconfig/awffull
+umask 0022
+
+if [ -n "$ENABLE" ] && [ "$ENABLE" = "yes" -o "$ENABLE" = "YES" ]; then
+       LC_ALL=$LANG
+       export LANG
+       export LC_ALL
+       
+       if [ -n "$REALLY_QUIET" ] && [ "$REALLY_QUIET" = "yes" -o "$REALLY_QUIET" = "YES" ]; then
+               AWFFULL_OPTS="-Q"
+       elif [ -n "$QUIET" ] && [ "$QUIET" = "yes" -o "$QUIET" = "YES" ]; then
+               AWFFULL_OPTS="-q"
+       fi
+       
+       if [ -f /etc/awffull.conf ]; then
+               awffull ${AWFFULL_OPTS} -c /etc/awffull.conf
+       fi
+       if [ -n "$MULTIPLE" ] && [ "$MULTIPLE" = "yes" -o "$MULTIPLE" = "YES" ]; then
+               for i in $(ls /etc/awffull/*.conf 2>/dev/null); do
+                       awffull ${AWFFULL_OPTS} -c $i;
+               done
+       fi
+fi
diff --git a/awffull.crontab b/awffull.crontab
new file mode 100644 (file)
index 0000000..2d1d05a
--- /dev/null
@@ -0,0 +1,4 @@
+#
+# cron job for the awffull
+#
+05 * * * *     stats   /usr/sbin/awffull.cron
diff --git a/awffull.sysconfig b/awffull.sysconfig
new file mode 100644 (file)
index 0000000..8fd2172
--- /dev/null
@@ -0,0 +1,16 @@
+# Customized settings for awffull
+
+# Enable cron [yes|no]
+ENABLE="no"
+
+# Output language
+# LANG="pl_PL"
+
+# Allow multiple configs in /etc/awffull/
+MULTIPLE="yes"
+
+# Supress messages
+# QUIET="yes"
+
+# Don't display any messages
+#REALLY_QUIET="yes"
This page took 0.180458 seconds and 4 git commands to generate.