Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2002 11:42:55 +0200 (EET)
From:      netch@netch.kiev.ua (Valentin Nechayev)
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   conf/34825: Incorrect rc in /etc/periodic/daily/400.status-disks
Message-ID:  <200202110942.LQN90716@segfault.kiev.ua>

next in thread | raw e-mail | index | archive | help


>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202110942.LQN90716>