/usr/lib/fwanalog/cron is in fwanalog 0.6.9-8.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/bin/sh -e
conffile="/etc/fwanalog/fwanalog.opts"
debianconf="/etc/default/fwanalog"
fwanalog_cmd="/usr/bin/fwanalog"
[ -x "$fwanalog_cmd" -a -f "$debianconf" -a -f "$conffile" ] || exit 0
. "$debianconf"
. "$conffile"
if [ "$CRON" = "true" ]; then
# if MAILTO is set we first generate statistics for today and mail them
if [ "$MAILTO" != "" ]; then
su fwanalog -c "nice $fwanalog_cmd -t" > /dev/null >&1 && cat "$outdir/today.txt" | mail -s "Daily fwanalog report" $MAILTO
fi
# and then we call the script normally
su fwanalog -c "nice $fwanalog_cmd" > /dev/null >&1
fi
|