From owner-freebsd-questions@FreeBSD.ORG Wed Jul 16 13:21:15 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C7287674 for ; Wed, 16 Jul 2014 13:21:15 +0000 (UTC) Received: from mail.tdx.com (mail.tdx.com [62.13.128.18]) by mx1.freebsd.org (Postfix) with ESMTP id 53E0127EC for ; Wed, 16 Jul 2014 13:21:14 +0000 (UTC) Received: from Mail-PC.tdx.co.uk (storm.tdx.co.uk [62.13.130.251]) (authenticated bits=0) by mail.tdx.com (8.14.3/8.14.3/) with ESMTP id s6GDLBbE029141 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Jul 2014 14:21:12 +0100 (BST) Date: Wed, 16 Jul 2014 14:21:12 +0100 From: Karl Pielorz To: krad Subject: Re: sh 'sleep' and trap? Message-ID: In-Reply-To: References: <917611ACD1C0644B793C5B81@Mail-PC.tdx.co.uk> X-Mailer: Mulberry/4.0.8 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2014 13:21:15 -0000 --On 16 July 2014 10:55 +0100 krad wrote: > send a kill to the script and then to the sleep process itself? Would work, but wouldn't allow a simple: kill `head -1 /var/run/mypid.pid` Which would make it a nasty 'exception' to how everything else works on the system :( -Karl