SCSI thanks, wild user processes

Gary Mills mills at ccu.umanitoba.ca
Sat Jun 1 01:45:30 AEST 1991


In <1991May30.210639.17442 at csl.dl.nec.com> harrison at csl.dl.nec.com (Mark Harrison) writes:

>Another question:  We recently had a system crash due to
>a user running a shell script that accidentally invoked
>itself.

>Is there

>1.  A way to keep this from crashing the system?

You could do something like this, which we invoke from /etc/rc.local

#!/bin/sh
#kpatch: apply local patches to the running kernel
#	set max per-user processes to 200

N=/vmunix
D=/dev/mem

adb -w -k $N $D <<\EOF
maxuprc/W 0t200
$q
EOF

#!/end

>2.  If the system has crashed, to determine that
>    this was the reason?

If you have a dump, looking at the process table with ``ps'' should
show hundreds of copies of the shell script running.

>We are running SunOS 4.1.1.

-- 
-Gary Mills-         -Networking Group-          -U of M Computer Services-



More information about the Comp.unix.admin mailing list