From owner-freebsd-questions Wed Oct 18 18:42:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from static.unixfreak.org (static.unixfreak.org [63.198.170.139]) by hub.freebsd.org (Postfix) with ESMTP id BB31B37B479 for ; Wed, 18 Oct 2000 18:42:40 -0700 (PDT) Received: by static.unixfreak.org (Postfix, from userid 1000) id 5386B1F22; Wed, 18 Oct 2000 18:42:40 -0700 (PDT) Subject: Re: renice In-Reply-To: <00101816160900.00494@mephistopheles.onlinecables.net> "from Robert Shea at Oct 18, 2000 04:11:04 pm" To: Robert Shea Date: Wed, 18 Oct 2000 18:42:40 -0700 (PDT) Cc: freebsd-questions@FreeBSD.ORG From: Dima Dorfman Reply-To: dima@unixfreak.org X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20001019014240.5386B1F22@static.unixfreak.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > I am trying to renice common users on a 4x-STABLE machine yet i am having two > problems: > 1. for some reason this system lacks set/getpriority these were not removed > from the install, and their respective man pages are > present. Without these Exactly how did you come to the conclusion that these are not present? Did you change the standard C library? I don't think a system will work properly if these weren't there. > renice will not change the users' settings. > 2. how would I go about making the reniced settings stick through > reboots? Well, a nice setting stays with a certain process until it dies. Obviously, when the system restarts, all processes die. If you want to set a default nice value for a group of users, take a look at login.conf(5). If you just want to renice specific processes and trust that they won't die until another reboot, you could create a simple shell script with a bunch of ` | xargs renice 4 -p` lines and run it when the system boots up via rc.local (or /usr/local/etc/rc.d). Hope this helps -- Dima Dorfman Finger dima@unixfreak.org for my public PGP key. "Most people would sooner die than think; in fact, they do so." -- Bertrand Russell To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message