From owner-freebsd-questions@FreeBSD.ORG Mon Sep 1 08:37:38 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09FB7106589F for ; Mon, 1 Sep 2008 08:37:38 +0000 (UTC) (envelope-from payne@magidesign.com) Received: from magi.magidesign.com (arpa-87018.atl-001.abraxis.com [216.47.87.18]) by mx1.freebsd.org (Postfix) with ESMTP id B910F8FC1D for ; Mon, 1 Sep 2008 08:37:37 +0000 (UTC) (envelope-from payne@magidesign.com) Received: from localhost (unknown [127.0.0.1]) by magi.magidesign.com (Postfix) with ESMTP id 0B48036C162; Sun, 31 Aug 2008 02:09:21 +0000 (UTC) X-Virus-Scanned: by amavisd-new-2.5.1 (20070531) (SuSE 10.0) at magidesign.com Received: from magi.magidesign.com ([127.0.0.1]) by localhost (magi.magidesign.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xf4xd5WG8MgC; Sat, 30 Aug 2008 22:09:11 -0400 (EDT) Received: by magi.magidesign.com (Postfix, from userid 65534) id 6297436C164; Sat, 30 Aug 2008 22:09:11 -0400 (EDT) X-Spam-ASN: X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on magi X-Spam-Level: X-Spam-Status: No, score=(-3.0), required=1.5, tests=ALL_TRUSTED,BAYES_00, Magi_de, autolearn=no, network test= _DCCR_ _PYZOR_ , bayes score = 0.0000, version=3.2.4 date scan = Sat, 30 Aug 2008 22:09:11 -0400 X-Spam-remote: hostinfo = localhost @ 127.0.0.1 Received: from TATL0WMCPAYNE.local (unknown [192.168.105.64]) by magi.magidesign.com (Postfix) with ESMTP id 7294C36C162; Sat, 30 Aug 2008 22:09:08 -0400 (EDT) Message-ID: <48B9FD43.1070508@magidesign.com> Date: Sat, 30 Aug 2008 22:09:07 -0400 From: Payne User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: John Almberg References: <2E311D07-5DC9-43FF-9EEF-C56B620A632B@identry.com> In-Reply-To: <2E311D07-5DC9-43FF-9EEF-C56B620A632B@identry.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Why the extra shells? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2008 08:37:38 -0000 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 > "freebsd-questions-unsubscribe@freebsd.org" >