Re: reducing periodic report to error conditions

Liste des GroupesRevenir à cubf misc 
Sujet : Re: reducing periodic report to error conditions
De : groenveld (at) *nospam* acm.org (John D Groenveld)
Groupes : comp.unix.bsd.freebsd.misc
Date : 15. Jun 2025, 21:01:30
Autres entêtes
Organisation : Groenveld.US
Message-ID : <mb8n4qF25asU1@mid.individual.net>
References : 1
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

Date Sujet#  Auteur
14 Jun 25 * reducing periodic report to error conditions4Marco Moock
15 Jun 25 `* Re: reducing periodic report to error conditions3John D Groenveld
29 Jun 25  `* Re: reducing periodic report to error conditions2Marco Moock
29 Jun 25   `- Re: reducing periodic report to error conditions1Bob Eager

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal