From cejkar@pccejkar.dcse.fee.vutbr.cz  Thu Dec  3 02:08:08 1998
Received: from pccejkar.dcse.fee.vutbr.cz (pccejkar.dcse.fee.vutbr.cz [147.229.176.31])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA24146
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 3 Dec 1998 02:08:01 -0800 (PST)
          (envelope-from cejkar@pccejkar.dcse.fee.vutbr.cz)
Received: (from cejkar@localhost)
	by pccejkar.dcse.fee.vutbr.cz (8.9.1/8.9.1) id LAA00794;
	Thu, 3 Dec 1998 11:07:25 +0100 (CET)
	(envelope-from cejkar)
Message-Id: <199812031007.LAA00794@pccejkar.dcse.fee.vutbr.cz>
Date: Thu, 3 Dec 1998 11:07:25 +0100 (CET)
From: xcejka00@dcse.fee.vutbr.cz
Reply-To: xcejka00@dcse.fee.vutbr.cz
To: FreeBSD-gnats-submit@freebsd.org
Subject: rc5des port doesn't work after reboot (-current)
X-Send-Pr-Version: 3.2

>Number:         8949
>Category:       ports
>Synopsis:       rc5des port doesn't work after reboot (-current)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec  3 02:10:01 PST 1998
>Closed-Date:    Tue Dec 22 12:36:32 PST 1998
>Last-Modified:  Tue Dec 22 12:37:39 PST 1998
>Originator:     Rudolf Cejka
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
FEE TU Brno, Czech Republic
>Environment:

	-current

>Description:

	After reboot, rc5des doesn't work (started from
	/usr/local/etc/rc.d/rc5des.sh). It writes in the log file this
	message instead (shutdown after three seconds):

	-----------------------------
[Dec 02 14:51:06 GMT] Loaded RC5 1*2^31 block 6720A396:00000000 (16.72% done)
[Dec 02 14:51:06 GMT] 12 RC5 blocks remain in file buff-in.rc5
[Dec 02 14:51:06 GMT] 1 RC5 block is in file buff-out.rc5

[Dec 02 14:51:09 GMT] Shutdown message received - Block being saved.
[Dec 02 14:51:09 GMT] Saved block 6720A396:00000000 (16.72 percent complete)
	-----------------------------

	If I run batch directly in root session after reboot,
	rc5des will run. Why? I don't know. I don't understand differences
	between rc.* scripting and root session.

>How-To-Repeat:
>Fix:

	It helps if I move character "&" into command executed as nobody.
	Also, FreeBSD's task scheduler is very insensitive for
	niceness. I think, it's much better to run rc5des in idle
	priority - so I'm adding idprio into my patch. Without idprio
	(nice 19) kernel compiles after 15 minutes on my machine, with
	idprio after 12 minutes - it's about 25 % donated to rc5des :-(.

	This patch works fine for me:
	
*** /usr/ports/misc/rc5des/files/rc5des.sh	Thu Nov 12 18:29:47 1998
--- /tmp/rc5des.sh	Thu Dec  3 10:56:45 1998
***************
*** 24,27 ****
  fi
  
  echo -n " rc5des"
! su -m nobody -c "$dir/rc5des -quiet" 2>/dev/null >/dev/null &
--- 24,27 ----
  fi
  
  echo -n " rc5des"
! idprio 8 su -m nobody -c "$dir/rc5des -quiet &" 2>/dev/null >/dev/null

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Tue Dec 22 12:36:32 PST 1998 
State-Changed-Why:  
Scott Mace committed a fix for this in revision 1.3 of rc5des.sh (minus 
the idprio change). 
>Unformatted:
