From owner-freebsd-rc@FreeBSD.ORG Thu May 19 19:50:31 2011 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3FCC106566B for ; Thu, 19 May 2011 19:50:31 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 62BCD8FC14 for ; Thu, 19 May 2011 19:50:30 +0000 (UTC) Received: by bwz12 with SMTP id 12so3398269bwz.13 for ; Thu, 19 May 2011 12:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:from:date:message-id :subject:to:content-type; bh=45VG3aV5mY1WecmMt1j+XLBGWNKvnVobhMQegDD4kkI=; b=YWN/zetvobKzf0elutfx23bjRhqjlcuMx8qaGj/pOx4FS0YNTQkHjIlfnNdaZjefFk iPEJ498KCsFP7201KCX945rZ0qDWydMYNMfNpxoNLTEEeBJY++d9qFP340u5ZkOGbt2Z jbumwpSTQpHyCmDPb9JTLnSH8FpV0i27LAYaA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:from:date:message-id:subject:to:content-type; b=P4twXqWRoTwvGsy7IxcBzEEgTkGgXtgMVL50nHc2+3f3xMN4F6pSJBPRrgKCIWilF6 HZk/Ec5Dcf5IzW+MaMxA/i5BCjeJHlEVVoTEpxxowc145G0J7wDl09xtdxPjZ1O1tezX 9SCy59zUti8bytuIwQn4p7ss5gPuTEN4zkym0= Received: by 10.204.83.82 with SMTP id e18mr3204491bkl.71.1305832548319; Thu, 19 May 2011 12:15:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.205.65.198 with HTTP; Thu, 19 May 2011 12:15:18 -0700 (PDT) From: Chris Rees Date: Thu, 19 May 2011 20:15:18 +0100 Message-ID: To: freebsd-rc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: get_pidfile_from_conf usage X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2011 19:50:31 -0000 Hi all, I know it's been done to death recently, and there're examples in slim, but I'd just like some clarity here -- I'm sticking it into musicpd.in. Is it absolutely necessary to define a precmd and postcmd to get the pidfile, or can I just set prestart_cmd=find_pidfile && prestop_cmd=find_pidfile? How do I get status working properly; it doesn't look right in slim... Chris