Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Aug 2001 01:35:13 +0200 (CEST)
From:      Cyrille Lefevre <clefevre@citeweb.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/30209: Maintainer update: setiathome enhancement (idprio)
Message-ID:  <200108292335.f7TNZDk31949@gits.dyndns.org>

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

>Number:         30209
>Category:       ports
>Synopsis:       Maintainer update: setiathome enhancement (idprio)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 29 17:30:00 PDT 2001
>Closed-Date:
>Last-Modified:
>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:
>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?200108292335.f7TNZDk31949>