From owner-freebsd-questions@FreeBSD.ORG Fri Apr 8 18:02:01 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B406216A4CE for ; Fri, 8 Apr 2005 18:02:01 +0000 (GMT) Received: from ss.eunet.cz (ss.eunet.cz [193.85.228.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id D01E343D31 for ; Fri, 8 Apr 2005 18:02:00 +0000 (GMT) (envelope-from mime@traveller.cz) Received: from localhost.i.cz (ss.eunet.cz [193.85.228.13]) by ss.eunet.cz (8.13.1/8.13.1) with ESMTP id j38I1p0w016822; Fri, 8 Apr 2005 20:01:51 +0200 (CEST) (envelope-from mime@traveller.cz) From: Michal Mertl To: Richard Morse In-Reply-To: References: <0C6023A0-A83B-11D9-B765-000A956EB07E@partners.org> <20050408144104.GA75094@orion.daedalusnetworks.priv> Content-Type: text/plain Date: Fri, 08 Apr 2005 20:01:50 +0200 Message-Id: <1112983310.627.1.camel@genius2.i.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit cc: Giorgos Keramidas cc: freebsd-questions@freebsd.org Subject: Re: Any way to log all process launches? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2005 18:02:01 -0000 Richard Morse wrote: > On 8 Apr 2005, at 10:41 AM, Giorgos Keramidas wrote: > > > On 2005-04-08 10:32, Richard Morse wrote: > >> Hi! I'm trying to track down an odd problem, for which it would be > >> very useful to be able to have the computer keep track of every > >> process that gets created -- ie, keep a list of every fork / exec that > >> occurs. Is this possible? > > > > Yes, it is possible. This is part of what `process accounting' does. > > > > Look at the manpages of accton(8), lastcomm(1); then check the > > accounting_enable knob in rc.conf(5) and /etc/defaults/rc.conf > > Thanks! I was looking under logging and auditing and tracing -- not > accounting... If you need more detailed information some patches at garage.freebsd.pl might be interesting - especially lrexec. It may be a bit outdated but it provides you with the information standard utilities don't. Michal