Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #274725
| From | Jean-François Bachelet <jfbachelet@free.fr> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: problem with fwlogwatch.service (debian 12) |
| Date | 2024-11-20 21:40 +0100 |
| Message-ID | <JKZEt-ajQL-9@gated-at.bofh.it> (permalink) |
| References | <JKRQC-af00-5@gated-at.bofh.it> <JKS9X-af7e-5@gated-at.bofh.it> <JKVUd-ahzD-11@gated-at.bofh.it> <JKYp3-ajaM-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hello Marial :)
Le 20/11/2024 à 20:16, Darac Marjal a écrit :
> On Wed, Nov 20, 2024 at 05:35:58PM +0100, Jean-François Bachelet wrote:
> [cut]
>>
>> 'systemctl status fwlogwatch.service' :
>>
>>
>>> fwlogwatch.service - Firewall log analyzer
>>> Loaded: loaded (/lib/systemd/system/fwlogwatch.service; enabled;
>>> preset: enabled)
>>> Active: failed (Result: exit-code) since Wed 2024-11-20 17:02:18
>>> CET; 1min 27s ago
>>> Docs: man:fwlogwatch
>>> Process: 294164 ExecStart=/bin/sh -c if [ "x${START_DAEMON}" !=
>>> "xtrue" ]; then echo "aborted"; exit 1; fi; exec /usr/sbin/
>>> fwlogwatch -c /etc/fwlogwatch/fwlogwatch.config -R ${PARAMS}
>>> (code=exited, status=1/FAILURE)
>>> CPU: 16ms
>>>
>>> nov. 20 17:02:18 deb systemd[1]: Starting fwlogwatch.service -
>>> Firewall log analyzer...
>>> nov. 20 17:02:18 deb sh[294164]: aborted
>>> nov. 20 17:02:18 deb systemd[1]: fwlogwatch.service: Control process
>>> exited, code=exited, status=1/FAILURE
>>> nov. 20 17:02:18 deb systemd[1]: fwlogwatch.service: Failed with
>>> result 'exit-code'.
>>> nov. 20 17:02:18 deb systemd[1]: Failed to start fwlogwatch.service -
>>> Firewall log analyzer.
>>
> I might be reading this wrong, but the "ExecStart" command is a shell
> script which basically says "if the $START_DAEMON variable does not
> equal 'true', then echo 'aborted' and stop". Given you get sh printing
> the word 'aborted', I think you're reading that branch.
>
> Did you set "START_DAEMON=true" in /etc/default/fwlogwatch or similar?
there is no such stuff in the confs...
here is what the cron daily conf says for it :
> /etc/cron.daily/fwlogwatch
> #!/bin/sh
> # fwlogwatch's daily cron job
> # Copyright 2001 Alberto Gonzalez Iniesta <agi@agi.as>
> # Licensed under the GNU General Public License, version 2. See the file
> # /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>.
> #
> set -e
> test $DEBIAN_SCRIPT_DEBUG && set -v -x
>
> FWLOGWATCH=/usr/sbin/fwlogwatch
> CONFIG=/etc/default/fwlogwatch
> EXTRA_HEADER="Content-Type: text/plain"
>
> test -x $FWLOGWATCH || exit 0
> test -r $CONFIG || exit 0
>
> # Source configuration generated from debconf's values
> . $CONFIG
>
> if [ "$CRON_EMAIL" = "none" ]; then
> exit 0
> fi
>
> OUTPUT=`$FWLOGWATCH $CRON_PARAMS`
>
> (echo "$OUTPUT" | grep -q 'No valid time entries found') \
> && exit 0
>
> ## Mail results
>
> TMPFILE=`mktemp /tmp/fwlogwatch.XXXXXXXXXX`
>
> #echo "From: " >> $TMPFILE
> echo "To: $CRON_EMAIL" >> $TMPFILE
> echo "Subject: fwlogwatch daily news" >> $TMPFILE
>
> (echo "$OUTPUT" | grep -q '</html>') \
> && echo "Content-Type: text/html" >> $TMPFILE
>
> echo >> $TMPFILE>
> echo "$OUTPUT" >> $TMPFILE
>
> /usr/lib/sendmail -F `id -nu` "$CRON_EMAIL" < $TMPFILE
>
> rm -f $TMPFILE
>
> # vim:set ai et sts=2 sw=2 tw=0:
as said, /etc/fwlogwatch.config is all commented out except for the pid
file.
btw, the pid file I've touched for fwlogwatch has disapeared from /run...
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
problem with fwlogwatch.service (debian 12) Jean-François Bachelet <jfbachelet@free.fr> - 2024-11-20 13:20 +0100
Re: problem with fwlogwatch.service (debian 12) <tomas@tuxteam.de> - 2024-11-20 13:40 +0100
Re: problem with fwlogwatch.service (debian 12) Jean-François Bachelet <jfbachelet@free.fr> - 2024-11-20 17:40 +0100
Re: problem with fwlogwatch.service (debian 12) tomas@tuxteam.de - 2024-11-20 18:10 +0100
Re: problem with fwlogwatch.service (debian 12) didier gaumet <didier.gaumet@gmail.com> - 2024-11-20 19:40 +0100
Re: problem with fwlogwatch.service (debian 12) Darac Marjal <mailinglist@darac.org.uk> - 2024-11-20 20:20 +0100
Re: problem with fwlogwatch.service (debian 12) Jean-François Bachelet <jfbachelet@free.fr> - 2024-11-20 21:40 +0100
Re: problem with fwlogwatch.service (debian 12) Michel Verdier <mv524@free.fr> - 2024-11-21 08:40 +0100
[SOLVED] Re: problem with fwlogwatch.service (debian 12) Jean-François Bachelet <jfbachelet@free.fr> - 2024-11-21 11:30 +0100
Re: [SOLVED] Re: problem with fwlogwatch.service (debian 12) Eike Lantzsch ZP5CGE / KY4PZ <zp6cge@gmx.net> - 2024-11-21 12:50 +0100
csiph-web