From owner-freebsd-ports@FreeBSD.ORG Sun Oct 11 16:16:29 2009 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7DF8B106568F for ; Sun, 11 Oct 2009 16:16:29 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by mx1.freebsd.org (Postfix) with ESMTP id 0D2478FC08 for ; Sun, 11 Oct 2009 16:16:28 +0000 (UTC) Received: by ewy18 with SMTP id 18so2276499ewy.43 for ; Sun, 11 Oct 2009 09:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=l8O6tGyFmKXUqDHED6whtYEHqu+nCmmOdUVMe8c0zqI=; b=isPQLpZBBhlMFWG42yHrENVcJDhzeqI2tvkREFv2bHd31cUaCei+hNeOVKaE4DzAxR uRvmzWqdp6fHUssusRx/HHU94cBV2ie0jkOwyCSNzWtIP2GzHdiS6BmAZFhkrVH2/VyI QXqgRsZKwMEZPG6q/EmOZNlMc6SAUaZNWa1DA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=XxXFsTjwZPJsZZIDi4fzLzWkbJWABvX2fuobMFLlW6YJ70kP74UerC7MlNzFg6biH8 Mg1M5TdyoxHyzXDkysH0Amzv3TuIV8gIti0jEbZElE8QfE/WhxIksfhmJs8ecDXNoNxI /Rz2ToB2pSRl4WXsInQCZoNvcOeVKUrYM/mYA= Received: by 10.211.160.11 with SMTP id m11mr1919705ebo.79.1255277787789; Sun, 11 Oct 2009 09:16:27 -0700 (PDT) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id 5sm115357eyh.28.2009.10.11.09.16.25 (version=SSLv3 cipher=RC4-MD5); Sun, 11 Oct 2009 09:16:26 -0700 (PDT) Date: Sun, 11 Oct 2009 17:16:23 +0100 From: RW To: ports@freebsd.org Message-ID: <20091011171623.3708a4dd@gumby.homeunix.com> In-Reply-To: <964AC7D5-8383-4E3E-A36C-6E957AC0B4CA@sd2i.com> References: <964AC7D5-8383-4E3E-A36C-6E957AC0B4CA@sd2i.com> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.6; i386-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Cc: Subject: Re: dkimproxy rc script X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Oct 2009 16:16:29 -0000 On Sun, 11 Oct 2009 15:02:18 +0200 ML wrote: > Hello, > > currently dkimproxy rc scripts don’t handle the status rc command > Status doesn't usually need any special handling unless it's something a little more exotic like multiple daemons; it should "just work", provided run_rc_command can find the pidfile. I'm not familiar with dkimproxy, but based on your script below my guess is that the variable dkimproxy_out_pidfile should simply be renamed to pidfile. > my hack is the following ("old school" script, I don’t know enough > about rc command deeps to make things nicer) > > # at the end of rc.d/dkimproxy_out replace > > run_rc_command "$1" > > # by the following > > case $1 in > status) > if /usr/bin/pgrep -F > "${dkimproxy_out_pidfile}" > / dev/null 2>&1; then > echo "${name} is running" > exit 0; > else > echo "${name} is not running" > exit 1 > fi > ;; > *) > run_rc_command "$1" > ;; > esac > > > Hope this help._______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to > "freebsd-ports-unsubscribe@freebsd.org"