Deutsch   English   Français   Italiano  
<mb8n4qF25asU1@mid.individual.net>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: groenveld@acm.org (John D Groenveld)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: reducing periodic report to error conditions
Date: 15 Jun 2025 20:01:30 GMT
Organization: Groenveld.US
Lines: 43
Message-ID: <mb8n4qF25asU1@mid.individual.net>
References: <20250614113925.08a15c5a@zbook>
X-Trace: individual.net aMnX3+b9i/LXMmbJ8S1ZYAeZ+UoiKgoG/YekRpwAgv9wCOGW8M
Cancel-Lock: sha1:7SYgt9ipBeL9muvLV+0mgGlRpPM= sha256:7lbLFNZ8Zfzcsz0pYowvqEC+cr4Ri750y3DoMBN1QoQ=

In article <20250614113925.08a15c5a@zbook>,
Marco Moock  <mm+usenet-es@dorfdsl.de> wrote:
>I have the following settings in /etc/defaults/periodic.conf

That file and periodic.conf(5) recommends against:
<URL:https://cgit.freebsd.org/src/tree/usr.sbin/periodic/periodic.conf?h=releng/14.3>
#!/bin/sh
#
# This is defaults/periodic.conf - a file full of useful variables that
# you can set to change the default behaviour of periodic jobs on your
# system.  You should not edit this file!  Put any overrides into one of the
# $periodic_conf_files instead and you will be able to update these defaults
# later without spamming your local configuration information.

<URL:https://man.freebsd.org/cgi/man.cgi?query=periodic.conf&sektion=5&apropos=0&manpath=FreeBSD+14.3-RELEASE+and+Ports>
       /etc/periodic.conf	    The	 usual	system specific	variable over-
				    ride file.

>daily_diff_flags="-b -U 0"            # flags for diff output
>daily_output="root"                   # user or /file
>daily_show_success="NO"               # scripts returning 0
>daily_show_info="YES"                 # scripts returning 1
>daily_show_badconfig="YES"            # scripts returning 2
>[...]
>daily_status_disks_enable="YES"       # Check disk status
>daily_status_disks_df_flags="-l -h"   # df(1) flags for check
>
>I still get the following message every day:

# (cd /etc/periodic/daily/&&./400.status-disks>/dev/null);echo $?
1

periodic(8) suggests you add daily_show_info=NO in /etc/periodic.conf.
<URL:https://man.freebsd.org/cgi/man.cgi?query=periodic&manpath=FreeBSD+14.3-RELEASE+and+Ports>
       To  only	 see  important	 information from daily	periodic jobs, add the
       following lines to /etc/periodic.conf:

	     daily_show_success=NO
	     daily_show_info=NO
	     daily_show_badconfig=NO

John
groenveld@acm.org