view common/0logwatch @ 462:2f2ecf1f0215

Reduce PHP FPM overheads * Reduce "max idle servers", which leaves LOTS of unused servers sitting around most of the time * Remove old, unused static config file
author IBBoard <dev@ibboard.co.uk>
date Sat, 18 Nov 2023 18:38:12 +0000
parents 956e484adc12
children
line wrap: on
line source

#!/bin/bash

DailyReport=`grep -e "^[[:space:]]*DailyReport[[:space:]]*=[[:space:]]*" /usr/share/logwatch/default.conf/logwatch.conf | head -n1 | sed -e "s|^\s*DailyReport\s*=\s*||"`

if [ "$DailyReport" != "No" ] && [ "$DailyReport" != "no" ]
then
    logwatch
fi