Re: Why the extra shells?
Hi John, On Mon, Sep 01, 2008 at 08:43:49AM -0400, John Almberg wrote: This is my main concern at the moment... I am wondering if I killed off an essential process when I killed off those shells... Probably not. Your `ps` output was: [on:~] ps PID TT STAT TIME COMMAND 30350 p0 Ss 0:00.03 -bash (bash) 30761 p0 R+ 0:00.00 ps 99069 p1 Is+0:00.01 /usr/local/bin/bash 79966 p3 Is 0:00.01 /usr/local/bin/bash 27050 p4 Is+0:00.01 /usr/local/bin/bash 45342 p5 Is+0:00.01 /usr/local/bin/bash The fact that your shells all have a small TIME column indicates that they're not very active. This is a good thing. The I under STAT means it's an idle process, and the fact that it's attached to a tty means it was started on a terminal. The ones with a + are foreground processes on their ttys. I'd guess that these could be shells processes that were never killed off when their terminals were closed, but you can find out a little more about them, once you get some more of them showing up. `ps Olstart` will show you the date/time that a process was started. You can compare this to the output of `last` to see if the dates and ttys match up with your logins. If they don't match up, they're probably not login shells, and more investigation is required, possibly by using things like `ps uwwtp1` for the shell on p1. This will give you ALL the processes on that TTY, including anything that might have been launched by bash (and therefore possibly subject to a HUP sent by the shell as you kill it). p -- Paul Chvostek [EMAIL PROTECTED] it.canadahttp://www.it.ca/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why the extra shells?
John, I have seen that when a script is running and it uses the bash shell. I have see that too where you close a ssh session too soon like you stated. Hope that helps. Payne John Almberg wrote: I just noticed something odd... When I type ps, I get the following: [on:~] ps PID TT STAT TIME COMMAND 30350 p0 Ss 0:00.03 -bash (bash) 30761 p0 R+ 0:00.00 ps 99069 p1 Is+0:00.01 /usr/local/bin/bash 79966 p3 Is 0:00.01 /usr/local/bin/bash 27050 p4 Is+0:00.01 /usr/local/bin/bash 45342 p5 Is+0:00.01 /usr/local/bin/bash 20302 p6 Is 0:00.02 /usr/local/bin/bash 73354 p7 Is+0:00.01 /usr/local/bin/bash 94357 p8 Is+0:00.14 /usr/local/bin/bash 82034 p9 Is+0:00.02 /usr/local/bin/bash 82825 pa Is+0:00.02 /usr/local/bin/bash 63521 pb Is+0:00.07 /usr/local/bin/bash 75330 pc Is+0:00.06 /usr/local/bin/bash 81504 pd Is+0:00.01 /usr/local/bin/bash 95482 pe Is+0:00.01 /usr/local/bin/bash 21072 pf Is+0:00.12 /usr/local/bin/bash 96897 pg Is+0:00.07 /usr/local/bin/bash 50522 ph Is+0:00.02 /usr/local/bin/bash 98404 pi Is+0:00.03 /usr/local/bin/bash I'm wondering why I have all these shells running? Could it be because I close my SSH terminal without exiting, thus leaving bash in some sort of suspended state? This is a pure server box, with Apache, tinydns, and Qmail being the main processes. Can I just kill them off? There is no one logged into this server besides me, and never will be. A 'who' confirms that I am the only one logged in. Any hints, much appreciated. -- John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why the extra shells?
I have seen that when a script is running and it uses the bash shell. This is my main concern at the moment... I am wondering if I killed off an essential process when I killed off those shells... It doesn't seem like it, because everything seems to be working. I'd love to restart the server to see if they come back to life, but that would ruin my uptime stat. As a newbie admin, I take great pride in my 152 day, 100% uptime stat. (Hey, it's the little things in life that make me happy... it obviously isn't the money :-) I have see that too where you close a ssh session too soon like you stated. I'm guessing this is the real cause... I'll be more careful in the future. Thanks: John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Why the extra shells?
I just noticed something odd... When I type ps, I get the following: [on:~] ps PID TT STAT TIME COMMAND 30350 p0 Ss 0:00.03 -bash (bash) 30761 p0 R+ 0:00.00 ps 99069 p1 Is+0:00.01 /usr/local/bin/bash 79966 p3 Is 0:00.01 /usr/local/bin/bash 27050 p4 Is+0:00.01 /usr/local/bin/bash 45342 p5 Is+0:00.01 /usr/local/bin/bash 20302 p6 Is 0:00.02 /usr/local/bin/bash 73354 p7 Is+0:00.01 /usr/local/bin/bash 94357 p8 Is+0:00.14 /usr/local/bin/bash 82034 p9 Is+0:00.02 /usr/local/bin/bash 82825 pa Is+0:00.02 /usr/local/bin/bash 63521 pb Is+0:00.07 /usr/local/bin/bash 75330 pc Is+0:00.06 /usr/local/bin/bash 81504 pd Is+0:00.01 /usr/local/bin/bash 95482 pe Is+0:00.01 /usr/local/bin/bash 21072 pf Is+0:00.12 /usr/local/bin/bash 96897 pg Is+0:00.07 /usr/local/bin/bash 50522 ph Is+0:00.02 /usr/local/bin/bash 98404 pi Is+0:00.03 /usr/local/bin/bash I'm wondering why I have all these shells running? Could it be because I close my SSH terminal without exiting, thus leaving bash in some sort of suspended state? This is a pure server box, with Apache, tinydns, and Qmail being the main processes. Can I just kill them off? There is no one logged into this server besides me, and never will be. A 'who' confirms that I am the only one logged in. Any hints, much appreciated. -- John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why the extra shells?
I'm wondering why I have all these shells running? Could it be because I close my SSH terminal without exiting, thus leaving bash in some sort of suspended state? I have tried to leave a shell suspended every which I way I can think of, but can't make it happen, so the problem doesn't seem to be caused by not typing 'exit' to leave the shell... I killed off all those shells and don't see any ill effects, so apparently they weren't started by some running process that depended on them. I'm sure I did something wrong to create these zombie processes... will keep digging to see what it might have been... -- John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]