Re: sysctl kern.maxproc help needed

2007-05-01 Thread Daniel Ouellet
Keith Richardson wrote: You are confusing user group (i.e. www) with process group (i.e. logical grouping of processes for job contol, etc..). Obviously I did. See ps(1) and termios(4) note: termios had the most descriptive explanation of process group under Job Control that I could find in

Re: sysctl kern.maxproc help needed

2007-05-01 Thread Keith Richardson
Daniel Ouellet wrote: Yes, I can use it, but I can't figure out the process ID. I am trying to understand the man page on this to kill the group 67, or www. Obviously, I can't figure out the proper use of that syntax here. Man said The following PIDs have special meanings: -1 If su

Re: sysctl kern.maxproc help needed

2007-05-01 Thread Daniel Ouellet
Stuart Henderson wrote: kill is a shell builtin and doesn't need to fork. useful one to remember, thanks tedu. I kind of wish that pkill was too this time, but worked around it with Ted's help. All is good in the end and I learn something new today! Yes, I can use it, but I can't figure ou

Re: sysctl kern.maxproc help needed

2007-05-01 Thread Joachim Schipper
On Tue, May 01, 2007 at 07:49:42PM -0400, Daniel Ouellet wrote: > Ted Unangst wrote: > >read thepid < httpd.pid > >kill $thepid > > Thank you!!! > > This work. > > But what would be the proper syntax based on the man page to kill the > group if possible? > > Based on the man page it should be

Re: sysctl kern.maxproc help needed

2007-05-01 Thread Daniel Ouellet
Stuart Henderson wrote: there are other builtins, too: $ for i in /var/run/*.pid;do read x < $i; echo $i $x; done If you really need to find httpd's pid, you could sacrifice one of oh, of course.. /var/www/logs/httpd.pid I did try the cat, and more witch both reply with "cannot fork - try a

Re: sysctl kern.maxproc help needed

2007-05-01 Thread Stuart Henderson
> there are other builtins, too: > $ for i in /var/run/*.pid;do read x < $i; echo $i $x; done > > If you really need to find httpd's pid, you could sacrifice one of oh, of course.. /var/www/logs/httpd.pid

Re: sysctl kern.maxproc help needed

2007-05-01 Thread Stuart Henderson
> >kill is a shell builtin and doesn't need to fork. useful one to remember, thanks tedu. > Yes, I can use it, but I can't figure out the process ID. I am trying to > understand the man page on this to kill the group 67, or www. there are other builtins, too: $ for i in /var/run/*.pid;do read x

Re: sysctl kern.maxproc help needed

2007-05-01 Thread Daniel Ouellet
Ted Unangst wrote: read thepid < httpd.pid kill $thepid Thank you!!! This work. But what would be the proper syntax based on the man page to kill the group if possible? Based on the man page it should be possible no? In any case, this work, but I still would love to know how to do this f

Re: sysctl kern.maxproc help needed

2007-05-01 Thread Ted Unangst
On 5/1/07, Daniel Ouellet <[EMAIL PROTECTED]> wrote: Ted Unangst wrote: > On 5/1/07, Daniel Ouellet <[EMAIL PROTECTED]> wrote: >> I was testing the effect of sysctl kern.maxproc=xxx to see if I could >> figure out the memory usage of httpd until I get my additional memory in >> the server as it's

Re: sysctl kern.maxproc help needed

2007-05-01 Thread Daniel Ouellet
Ted Unangst wrote: On 5/1/07, Daniel Ouellet <[EMAIL PROTECTED]> wrote: I was testing the effect of sysctl kern.maxproc=xxx to see if I could figure out the memory usage of httpd until I get my additional memory in the server as it's in order and I don't have it yet. But now, I have more proces

Re: sysctl kern.maxproc help needed

2007-05-01 Thread Ted Unangst
On 5/1/07, Daniel Ouellet <[EMAIL PROTECTED]> wrote: I was testing the effect of sysctl kern.maxproc=xxx to see if I could figure out the memory usage of httpd until I get my additional memory in the server as it's in order and I don't have it yet. But now, I have more process running then the k