Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!psuvax1!moby!tel From: tel@moby.UUCP (Tom Lowe) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: How to set ulimit in SysV Message-ID: <113@Ahab.moby.UUCP> Date: Mon, 12-Oct-87 11:55:36 EDT Article-I.D.: Ahab.113 Posted: Mon Oct 12 11:55:36 1987 Date-Received: Fri, 16-Oct-87 00:43:35 EDT References: <1408@dasys1.UUCP> <6475@brl-smoke.ARPA> <6502@brl-smoke.ARPA> <6497@oliveb.UUCP> Organization: AT&T National Systems Support Center, South Plainfield, NJ Lines: 32 Keywords: patch ulimit Summary: ulimit for cron in SYSV Xref: mnetor comp.unix.wizards:4904 comp.unix.questions:4525 In article <6497@oliveb.UUCP>, jal@oliveb.UUCP (Benjamin G. Golding) writes: > In article <275@minya.UUCP>, jc@minya.UUCP (jc) writes: > > OK, I decided to see how hard this one was; it took 15 minutes, of which > > 13 were due to a bug in init.... > > > > What you do is change your inittab entries for getty to: > > > > t3:2:respawn:/bin/sh /etc/Getty tty03 tty03 > > No. This does not alter the ulimit for processes like cron and the > jobs that it starts up. > Very true unfortunately....... Workaround: in /etc/rc.d/cron add the line 'ulimit 40960' or whatever number before the line '/etc/cron' This same thing works for any shell script in rc.d that needs a larger ulimit. For people who don't know what /etc/rc.d is, that's is a directory that contains shell scripts that are executed every time the system is taking to init run level 2 (look in /etc/rc2 to see how this is done). -- Tom Lowe {rutgers,gatech,huscb,burdvax,ihnp4,cbosgd}!psuvax1!moby!tel AT&T National Systems Support Center, S. Plainfield, NJ (1-800-922-0354) Please call only if you have an AT&T computer under Warranty or if you have an AT&T Maintenance Contract on your equipment.