From root@gits.dyndns.org  Wed Aug 29 17:24:08 2001
Return-Path: <root@gits.dyndns.org>
Received: from smtp.noos.fr (verlaine.noos.net [212.198.2.73])
	by hub.freebsd.org (Postfix) with ESMTP id E9B7E37B406
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 29 Aug 2001 17:24:07 -0700 (PDT)
	(envelope-from root@gits.dyndns.org)
Received: (qmail 10890241 invoked by uid 0); 29 Aug 2001 23:35:14 -0000
Received: from unknown (HELO gits.dyndns.org) ([212.198.231.187]) (envelope-sender <root@gits.dyndns.org>)
          by 212.198.2.73 (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP
          for <FreeBSD-gnats-submit@freebsd.org>; 29 Aug 2001 23:35:14 -0000
Received: (from root@localhost)
	by gits.dyndns.org (8.11.6/8.11.6) id f7TNZDk31949;
	Thu, 30 Aug 2001 01:35:13 +0200 (CEST)
	(envelope-from root)
Message-Id: <200108292335.f7TNZDk31949@gits.dyndns.org>
Date: Thu, 30 Aug 2001 01:35:13 +0200 (CEST)
From: Cyrille Lefevre <clefevre@citeweb.net>
Reply-To: Cyrille Lefevre <clefevre@citeweb.net>
To: FreeBSD-gnats-submit@freebsd.org
Subject: Maintainer update: setiathome enhancement (idprio)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         30209
>Category:       ports
>Synopsis:       Maintainer update: setiathome enhancement (idprio)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 29 17:30:00 PDT 2001
>Closed-Date:    Sat Sep 1 09:49:43 PDT 2001
>Last-Modified:  Sat Sep 01 09:50:14 PDT 2001
>Originator:     Cyrille Lefevre
>Release:        FreeBSD 4.4-RC i386
>Organization:
ACME
>Environment:
System: FreeBSD gits 4.4-RC FreeBSD 4.4-RC #29: Sat Aug 25 14:49:20 CEST 2001     root@gits:/disk2/4.x-stable/src/sys/compile/CUSTOM  i386

>Description:
	as suggested by Stephen J. Roznowski, this enhancement allow
	starting up setiathome using idprio.

	pkg-message
		seti_idprio comment added.

	files/setiathome.sh
		seti_idprio variable added.

	files/rc.setiathome.conf
		ditto.
		

>How-To-Repeat:
	n/a
>Fix:

Index: pkg-message
===================================================================
RCS file: /home/ncvs/ports/astro/setiathome/pkg-message,v
retrieving revision 1.1
diff -u -r1.1 pkg-message
--- pkg-message	2001/08/24 13:39:27	1.1
+++ pkg-message	2001/08/29 23:30:53
@@ -1,3 +1,4 @@
 ****  %%PREFIX%%/etc/rc.setiathome.conf may be edited to tune some startup
       variables such as `seti_nice' defaulted to 15 and `seti_maxprocs'
-      defaulted to your number of processors.
+      defaulted to your number of processors. also, `seti_idprio' may be
+      sets to 31. See idprio(1) for details.
Index: files/rc.setiathome.conf
===================================================================
RCS file: /home/ncvs/ports/astro/setiathome/files/rc.setiathome.conf,v
retrieving revision 1.1
diff -u -r1.1 rc.setiathome.conf
--- files/rc.setiathome.conf	2001/08/24 13:39:27	1.1
+++ files/rc.setiathome.conf	2001/08/29 23:25:26
@@ -10,3 +10,4 @@
 # seti_user=nobody			# user id to run as
 # seti_nice=15				# nice level to run at
 # seti_maxprocs=$(sysctl -n hw.ncpu)	# max. number of processes to start
+# seti_idprio=31			# idletime scheduling priority to run at
Index: files/setiathome.sh
===================================================================
RCS file: /home/ncvs/ports/astro/setiathome/files/setiathome.sh,v
retrieving revision 1.6
diff -u -r1.6 setiathome.sh
--- files/setiathome.sh	2001/08/24 13:39:27	1.6
+++ files/setiathome.sh	2001/08/29 23:26:27
@@ -16,6 +16,7 @@
 seti_user=nobody			# user id to run as
 seti_nice=15				# nice level to run at
 seti_maxprocs=$(sysctl -n hw.ncpu)	# max. number of processes to start
+seti_idprio=				# idletime scheduling priority to run at
 
 if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/${rc_file}\$"); then
 	echo "${rc_file}: Cannot determine PREFIX." >&2
@@ -67,10 +68,10 @@
 		fi
 	done
 	for i in ${seti_wrksuff}; do
-		su -fm ${seti_user} -c "\
+		${seti_idprio:+idprio} ${seti_idprio} su -fm ${seti_user} -c "\
 			(cd ${seti_wrkdir}/${i} && exec ${program_path} \
 				 ${seti_std_args} ${seti_proxy_args} \
-				 ${seti_nice+-nice} ${seti_nice} >/dev/null &)"
+				 ${seti_nice:+-nice} ${seti_nice} >/dev/null &)"
 	done
 	echo -n " SETI@home"
 	;;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: lioux 
State-Changed-When: Sat Sep 1 09:49:43 PDT 2001 
State-Changed-Why:  
Committed, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30209 
>Unformatted:
