From owner-freebsd-questions@FreeBSD.ORG Wed Aug 4 04:16:10 2004 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 3649216A4CE for ; Wed, 4 Aug 2004 04:16:10 +0000 (GMT) Received: from smtp802.mail.sc5.yahoo.com (smtp802.mail.sc5.yahoo.com [66.163.168.181]) by mx1.FreeBSD.org (Postfix) with SMTP id B189443D31 for ; Wed, 4 Aug 2004 04:16:09 +0000 (GMT) (envelope-from krinklyfig@spymac.com) Received: from unknown (HELO smogmonster.com) (jtinnin@pacbell.net@66.122.48.149 with login) by smtp802.mail.sc5.yahoo.com with SMTP; 4 Aug 2004 04:16:09 -0000 From: Joshua Tinnin To: "FreeBSD-questions" Date: Tue, 3 Aug 2004 21:16:17 -0700 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200408032116.17573.krinklyfig@spymac.com> Subject: Restarting swatch when log turns over? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: krinklyfig@spymac.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 04:16:10 -0000 I hope this isn't too OT ... How would I restart swatch when a log turns over? As of now, when a log turns over, swatch continues running but doesn't read the new log. I thought maybe I could use watchfor /newsyslog/ exec killall -HUP swatch in .swatchrc to match the newsyslog string, but when I try the command there is no process matching swatch (it's running), and I don't know how to reference the PID in such a situation (and use kill -HUP instead). Or does swatch need to be restarted in this situation? Or maybe should newsyslog be told to restart swatch (not sure how to do this)? I've read through the man pages and searched the mailing list archives, and am not turning up anything ... - jt