From owner-freebsd-isp Sat Jul 14 14: 8:42 2001 Delivered-To: freebsd-isp@freebsd.org Received: from odin.wrath.net (024man167.chartermi.net [24.213.24.167]) by hub.freebsd.org (Postfix) with ESMTP id 8393F37B401 for ; Sat, 14 Jul 2001 14:08:36 -0700 (PDT) (envelope-from ircd@wrath.com) Received: from danrc ([192.168.1.2]) by odin.wrath.net with Microsoft SMTPSVC(5.0.2172.1); Sat, 14 Jul 2001 17:16:08 -0400 Message-ID: <002501c10ca9$18740eb0$0201a8c0@fear.wrath.net> From: "Brian" To: References: Subject: Re: Background processes limiting Date: Sat, 14 Jul 2001 17:08:14 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-OriginalArrivalTime: 14 Jul 2001 21:16:08.0124 (UTC) FILETIME=[32E9C7C0:01C10CAA] Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org ----- Original Message ----- From: "James Wyatt" To: "Matīss Elsbergs" Cc: "Marc Veldman" ; "Kal Torak" ; Sent: Saturday, July 14, 2001 4:19 PM Subject: Re: Background processes limiting > On Sat, 14 Jul 2001, [windows-1257] Matīss Elsbergs wrote: > > >Couldn't you just add a priority=15 > > >(or any high 'nice' value) to the login class for > > >the free shell users ? > > > > Of course I can, for I am the root :-), but that's not what I want. > > > > Since I started this thread, I was sitting at the manual, searching internet > > for hours, but I didn't find anything on this. I guess, there must be a man > > who 'knows how' and is willing to say the right words. > > I'm sure there is a man or woman on the list who can answer it, but they > may have already killed the thread or be on vacation... I'll try to help. > > I have seen such things done in .logout scripts, but usually users can > remove the .logout file to prevent the action. One approach might be to > have a script run from cron that finds processes with a PPID of "1" > (parent now init) and owned by a regular login user and kills them. > Another might be to look for regular-user process without an associated > tty device. Hope this helps... - Jy@ I've seen people use .logout scripts and also run a cron job once a day (during non-peak hours) to kill all processes associated with a username that isn't connected to the machine remotely (telnet/ssh) or sitting at the console. .logout scripts seem to work 99.9% of the time, since most users (including myself) are inept. The Sun machines at school don't let you remove the .logout scripts or in case of the Linux boxen they just re-add them on deletion somehow. I haven't got the foggiest idea what they did to do this. -Brian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message