From owner-freebsd-ports Wed Aug 29 17:30:29 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 089EF37B426 for ; Wed, 29 Aug 2001 17:30:22 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7U0U1W35035; Wed, 29 Aug 2001 17:30:01 -0700 (PDT) (envelope-from gnats) Received: from smtp.noos.fr (verlaine.noos.net [212.198.2.73]) by hub.freebsd.org (Postfix) with ESMTP id E9B7E37B406 for ; 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 ) by 212.198.2.73 (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 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 Reply-To: Cyrille Lefevre To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/30209: Maintainer update: setiathome enhancement (idprio) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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