You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def command(config_file, config_dir)
if windows?
%(agent -config-file="""#{config_file}""" -config-dir="""#{config_dir}""")
else
"/usr/local/bin/consul agent -config-file=#{config_file} -config-dir=#{config_dir}"
end
end
But the resulting reg entry in the consul service hive is: agent -config-file=C:\Program Files\consul\consul.json -config-dir=C:\Program Files\consul\conf.d
Which causes the following startup/restart error: Error reading 'C:\Program': open C:\Program: The system cannot find the file specified.
Using latest master branch from repo NOT the supermarket cookbook.
The text was updated successfully, but these errors were encountered:
@pjjohnstone I hit the same issue. It depended on which version of nssm.exe was on your system. I've tweaked our local copy of this cookbook so we can support nssm cookbook > 4.0
@Ginja I was going to issue a PR to summit my tweaks after I'd tested all use cases.
Command block from helpers.rb:
But the resulting reg entry in the consul service hive is:
agent -config-file=C:\Program Files\consul\consul.json -config-dir=C:\Program Files\consul\conf.d
Which causes the following startup/restart error:
Error reading 'C:\Program': open C:\Program: The system cannot find the file specified.
Using latest master branch from repo NOT the supermarket cookbook.
The text was updated successfully, but these errors were encountered: