From owner-freebsd-bugs Mon Feb 11 3:10: 8 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5ED0A37B417 for ; Mon, 11 Feb 2002 03:10:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1BBA2a81214; Mon, 11 Feb 2002 03:10:02 -0800 (PST) (envelope-from gnats) Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by hub.freebsd.org (Postfix) with ESMTP id C815437B402 for ; Mon, 11 Feb 2002 03:02:24 -0800 (PST) Received: (from netch@localhost) by segfault.kiev.ua (8) id LQN90716; Mon, 11 Feb 2002 11:42:55 +0200 (EET) (envelope-from netch) Message-Id: <200202110942.LQN90716@segfault.kiev.ua> Date: Mon, 11 Feb 2002 11:42:55 +0200 (EET) From: netch@netch.kiev.ua (Valentin Nechayev) To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: conf/34825: Incorrect rc in /etc/periodic/daily/400.status-disks Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34825 >Category: conf >Synopsis: Incorrect rc in /etc/periodic/daily/400.status-disks >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 11 03:10:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Valentin Nechayev >Release: FreeBSD 4.3-RELEASE-p24 i386 >Organization: private >Environment: System: FreeBSD segfault.kiev.ua 4.3-RELEASE-p24 FreeBSD 4.3-RELEASE-p24 #0: Mon Jan 28 14:35:45 EET 2002 root@segfault.kiev.ua:/var/obj/sys/sf4 i386 4.4, 4.5 - the same >Description: If /etc/periodic/daily/400.status-disks shows disks status, it returns 0, which means silent success. But for it, rc=1 is correct, which means that some info was put out and should be printed in daily log. >How-To-Repeat: Set daily_show_success=NO and see that no disks status is printed. >Fix: --- 400.status-disks.orig Mon Feb 11 11:39:14 2002 +++ 400.status-disks Mon Feb 11 11:38:59 2002 @@ -16,7 +16,7 @@ echo "" echo "Disk status:" - df $daily_status_disks_df_flags && rc=0 || rc=3 + df $daily_status_disks_df_flags && rc=1 || rc=3 # display which filesystems need backing up >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message