view common/0logwatch @ 343:0d263bcbbfe9

Make sure PHP-FPM service isn't running We still use mod_php, but Remi's packages now recommend the fpm package, which auto-starts the daemon process.
author IBBoard <dev@ibboard.co.uk>
date Wed, 24 Jun 2020 20:04:43 +0100
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