Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jul 2001 17:08:14 -0400
From:      "Brian" <ircd@wrath.com>
To:        <freebsd-isp@freebsd.org>
Subject:   Re: Background processes limiting
Message-ID:  <002501c10ca9$18740eb0$0201a8c0@fear.wrath.net>
References:  <Pine.BSF.4.10.10107141512410.46742-100000@bsdie.rwsystems.net>

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

----- Original Message -----
From: "James Wyatt" <jwyatt@rwsystems.net>
To: "Matīss Elsbergs" <sandstorm@astranet.lv>
Cc: "Marc Veldman" <freebsd@lurkie.xs4all.nl>; "Kal Torak"
<kaltorak@quake.com.au>; <freebsd-isp@FreeBSD.ORG>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002501c10ca9$18740eb0$0201a8c0>