salt rc.d scripts (Was: RUN_DEPENDS for python based port)

Doug Barton dougb at FreeBSD.org
Fri Dec 23 03:12:46 UTC 2011


On 12/22/2011 18:28, Christer Edwards wrote:
> On Thu, Dec 22, 2011 at 7:01 PM, Doug Barton <dougb at freebsd.org> 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.

Right.

> 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?

You need to pay attention to what Greg told you, and read the Handbook
page that I sent. :)


Doug

-- 

		[^L]

	Breadth of IT experience, and depth of knowledge in the DNS.
	Yours for the right price.  :)  http://SupersetSolutions.com/



More information about the freebsd-ports mailing list