Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SysVinit script #158

Merged
merged 1 commit into from
Apr 2, 2015
Merged

Conversation

hatchetation
Copy link
Contributor

This fixes #150.

In 77b2fd9, a change was introduced which uses array expansion to execute the consul agent.

However, because the results of the expansion (including the arguments) are quoted, bash treats the entire string as a command without any word splitting, and tries to execute e.g.,

/usr/local/bin/consul agent -config-dir /etc/consul.d

... which fails because that isn't a valid command.

As far as I can tell, this would break the SysV init script on all platforms which use it. (RHEL, Fedora, Amazon Linux, &c.)

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 3eb907b on hatchetation:fix_init_script into c0f3855 on johnbellone:master.

johnbellone added a commit that referenced this pull request Apr 2, 2015
@johnbellone johnbellone merged commit 992025a into sous-chefs:master Apr 2, 2015
@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken SysVinit script -- Consul fails to start on RHEL platforms (Amazon Linux, CentOS, etc.)
3 participants