From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Knorr Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Programs started from cron have a nice value of 2 (not 0) Date: Mon, 30 Apr 2007 14:54:10 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1177959290 24548 80.91.229.12 (30 Apr 2007 18:54:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Apr 2007 18:54:50 +0000 (UTC) To: tru64-unix-managers@ornl.gov Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Apr 30 20:54:48 2007 Return-path: Envelope-to: gotm-tru64-unix-managers@gmane.org Original-Received: from sws1.ornl.gov ([160.91.1.101]) by lo.gmane.org with smtp (Exim 4.50) id 1Hib1E-0006Ba-QR for gotm-tru64-unix-managers@gmane.org; Mon, 30 Apr 2007 20:54:41 +0200 Original-Received: (qmail 19463 invoked by uid 49509); 30 Apr 2007 18:54:24 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 19453 invoked by uid 49501); 30 Apr 2007 18:54:24 -0000 Original-Received: from 160.91.86.17 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.86.17):SA:0(-2.6/5.0):. Processed in 0.281699 secs); 30 Apr 2007 18:54:24 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute2.ornl.gov (160.91.86.17) by sws1.ornl.gov with SMTP; 30 Apr 2007 18:54:24 -0000 Original-Received: from emroute2.ornl.gov ([127.0.0.1]) by emroute2.ornl.gov (PMDF V6.3-x3 #31246) with ESMTP id <0JHB00A1KR6OSR@emroute2.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 30 Apr 2007 14:54:24 -0400 (EDT) Original-Received: from CONVERSION-DAEMON.emroute2.ornl.gov by emroute2.ornl.gov (PMDF V6.3-x3 #31246) id <0JHB00A01R6OW1@emroute2.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 30 Apr 2007 14:54:24 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute2.ornl.gov by emroute2.ornl.gov (PMDF V6.3-x3 #31246) id <0JHB00A02R6BVL@emroute2.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 30 Apr 2007 14:54:24 -0400 (EDT) Original-Received: from gull.hopsdc.com (gull.hopsdc.com [65.218.191.140]) by emroute2.ornl.gov (PMDF V6.3-x3 #31246) with ESMTP id <0JHB008CQR6A5D@emroute2.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 30 Apr 2007 14:54:11 -0400 (EDT) X-Envelope-from: cknorr@trapsystems.com X-MIMEOLE: Produced By Microsoft Exchange V6.5 Thread-Topic: SUMMARY: Programs started from cron have a nice value of 2 (not 0) thread-index: AceLWO/MPQs6NCVeRvqrChNDFLbQ9A== Content-class: urn:content-classes:message X-Spam-Virus: No X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on spam2.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,BOTNET_SOHO autolearn=ham version=3.1.8 X-MS-Has-Attach: X-MS-TNEF-Correlator: Xref: news.gmane.org gmane.os.tru64.managers:9183 Archived-At: QUESTION/PROBLEM: I have an ES80 with Tru64 Unix V5.1B. I've set up a small shell script which runs out of cron and, if the script detects that a particular executable isn't running, it starts it. The script is shown below. The weird and very problematic thing is that it consistently starts it with a nice value of 2. I have to "renice" it back to 0. ANSWER: Much thanks to Whitney Latta for this response: You might want to check the queuedefs(4) file (/var/adm/cron/queuedefs) for a "nice" value which is used for all non-zero uid jobs started by cron. See the queuedefs(4) man page for details. As it turns out, the following entry did the trick nicely: q.0n regards, Chris