Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Dec 1998 11:07:25 +0100 (CET)
From:      xcejka00@dcse.fee.vutbr.cz
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/8949: rc5des port doesn't work after reboot (-current)
Message-ID:  <199812031007.LAA00794@pccejkar.dcse.fee.vutbr.cz>

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

>Number:         8949
>Category:       ports
>Synopsis:       rc5des port doesn't work after reboot (-current)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec  3 02:10:01 PST 1998
>Last-Modified:
>Originator:     Rudolf Cejka
>Organization:
FEE TU Brno, Czech Republic
>Release:        FreeBSD 3.0-CURRENT i386
>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

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



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