Date: Fri, 22 Jun 2001 23:53:50 -0400 (EDT) From: Joe Clarke <marcus@marcuscom.com> To: "Rex A. Roof" <rex@rexroof.com> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: login.conf restrictions Message-ID: <20010622235122.C92463-100000@shumai.marcuscom.com> In-Reply-To: <20010622231717.A19668@rexroof.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010622235122.C92463-100000>