From owner-freebsd-questions Fri Jun 22 20:53:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from shumai.marcuscom.com (rdu26-228-058.nc.rr.com [66.26.228.58]) by hub.freebsd.org (Postfix) with ESMTP id A430137B40A for ; Fri, 22 Jun 2001 20:53:52 -0700 (PDT) (envelope-from marcus@marcuscom.com) Received: from localhost (marcus@localhost) by shumai.marcuscom.com (8.11.3/8.11.3) with ESMTP id f5N3ro903152; Fri, 22 Jun 2001 23:53:55 -0400 (EDT) (envelope-from marcus@marcuscom.com) X-Authentication-Warning: shumai.marcuscom.com: marcus owned process doing -bs Date: Fri, 22 Jun 2001 23:53:50 -0400 (EDT) From: Joe Clarke To: "Rex A. Roof" Cc: Subject: Re: login.conf restrictions In-Reply-To: <20010622231717.A19668@rexroof.com> Message-ID: <20010622235122.C92463-100000@shumai.marcuscom.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Right before you start these daemons, get the output of limit (or limits), and see what the logged in user is imposed with. Those will be the resource restrictions imposed on your process. You should grant root as close to unlimited resources as possible for the purposes of starting these daemons. Joe Clarke On Fri, 22 Jun 2001, Rex A. Roof wrote: > I have restrictions on openfiles and maxprocesses set up in my login.conf > for my users. But I find this is causing problems whenever I have to restart > a system daemon (apache, sendmail, idled, etc). When these processes start > at bootup, they run just fine w/out issue. But if they ever need to be > restarted they tend to die in a matter of hours. When these processes are > restarted they're by a user in a class called 'staff' that has it's own > login.conf setup. I've tried while su'ed with the -c option, and while > su'ed with 'su - root', both with no results. here's the relevant parts > of my /etc/login.conf: > > > default:\ > :copyright=/etc/COPYRIGHT:\ > :welcome=/etc/motd:\ > :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,\ > FTP_PASSIVE_MODE=YES,PW_SCAN_BIG_IDS=1:\ > :path=~/bin /bin /usr/bin /usr/local/bin /usr/X11R6/bin:\ > :nologin=/etc/nologin:\ > :cputime=unlimited:\ > :datasize=unlimited:\ > :stacksize=unlimited:\ > :memorylocked=unlimited:\ > :memoryuse=unlimited:\ > :filesize=unlimited:\ > :coredumpsize=0:\ > :openfiles=50:\ > :maxproc=50:\ > :sbsize=unlimited:\ > :priority=0:\ > :ignoretime@:\ > :password_format=des:\ > :umask=022: > > staff:\ > :ignorenologin:\ > :maxproc=unlimited:\ > :openfiles=unlimited:\ > :priority=-1:\ > :tc=default: > > this machine is: > FreeBSD m-net.arbornet.org 4.2-STABLE FreeBSD 4.2-STABLE #0: Fri Mar 2 00:12:36 EST 2001 trex@m-net.arbornet.org:/usr/src/sys/compile/MNET i386 > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message