From owner-freebsd-ports@FreeBSD.ORG Fri Dec 23 02:29:00 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47840106564A; Fri, 23 Dec 2011 02:29:00 +0000 (UTC) (envelope-from christer.edwards@gmail.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7CCE98FC0A; Fri, 23 Dec 2011 02:28:59 +0000 (UTC) Received: by lahl5 with SMTP id l5so5062753lah.13 for ; Thu, 22 Dec 2011 18:28:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=6CcBj711UqykJvttfIyFL6u0wRaGe8luI5RN8UCNV/0=; b=lE5UnBA7SCAovvumeIBJ0BqNeMQgvHlAadEKkVlB8A5e5rNWY+UyKLNFsINmQ16VMo vqVym4U+/J71Bk8LXfrjrdoB8nYptKcVjWoJhhww/QhkNMdIy6kqg+01W14ueDJQ8x+J NwOKDB2HFTIInWUzxGKtTPEgegMlxkcPnDGRo= Received: by 10.152.128.98 with SMTP id nn2mr10532022lab.14.1324607338225; Thu, 22 Dec 2011 18:28:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.20.134 with HTTP; Thu, 22 Dec 2011 18:28:37 -0800 (PST) In-Reply-To: <4EF3E10C.4070209@FreeBSD.org> References: <4EEC6D9D.1020102@yandex.ru> <4EEEAE03.1080908@yandex.ru> <4EF2FBAE.8050406@yandex.ru> <4EF393BC.2020003@yandex.ru> <4EF3CF11.6070104@FreeBSD.org> <4EF3E10C.4070209@FreeBSD.org> From: Christer Edwards Date: Thu, 22 Dec 2011 19:28:37 -0700 Message-ID: To: Doug Barton Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-ports@FreeBSD.org" Subject: Re: salt rc.d scripts (Was: RUN_DEPENDS for python based port) 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: Fri, 23 Dec 2011 02:29:00 -0000 On Thu, Dec 22, 2011 at 7:01 PM, Doug Barton wrote: > Try doing s/-/_/ for all the $name variables. I think that's what's > causing your problem. I did a little more testing (and I added the Makefile and .in file suggestions). I can now get it to run consistently if I change $name to use all underscores, and also update $command to 'salt-master' instead of $name. Definitely something funny about having dashes in the name I guess. Also, one last thing.. anytime I try to stop the newly started services they each complain about 'salt_master not running? (check /var/run/salt_master.pid).' Do I need to create the pid in the rc script, or in the Makefile? Very, very close now. Thanks again for all the help guys.