On Wed, 20 Jan 1999, Trevor Reynolds wrote:
>is there a way that one could limit how much cpu/ram a users process
>consumes. I've read somewhere that this could be done, but I could not find
>any information on exactly how to do it.
Create a script called "/etc/initscript". If this script exists, then init will
use it to start processes. In it, you can issue whatever ulimit commands you
want before starting the process. It is passed 4 parameters, which are the 4
fields of the inittab entry.
#!/bin/sh
identifier="${1}"
levels="${2}"
action="${3}"
process="${4}"
# Insert whatever you would like to do at this point.
eval exec "${process}"
--
Dave Mielke | 856 Grenon Avenue | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me
EMail: [EMAIL PROTECTED] | Canada K2B 6G3 | if you're concerned about Hell.