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

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

Closed
agperson opened this issue Mar 20, 2015 · 3 comments · Fixed by #158

Comments

@agperson
Copy link

Standard "init" fails to start due to quoting of $CMD. Removing quotation marks fixes issue:

[root@server1 consul.d]# service consul start
Starting consul
Running: /usr/bin/consul agent -config-dir /etc/consul.d
Unable to start consul, see /var/log/consul.log

Logfile is empty but in messages:

Mar 20 21:50:06 server1 consul: /etc/init.d/consul: line 46: /usr/bin/consul agent -config-dir /etc/consul.d: No such file or directory

After removing quotation marks:

[root@server1 consul.d]# service consul start
Starting consul

Change is: #115 (77b2fd9 line 44)

@hatchetation
Copy link
Contributor

This issue affects us as well on RHEL, this would seem to affect all platforms using SysVinit. The fix @agperson mentions works well here, seems sane.

@agperson agperson changed the title Failure to start on Amazon Linux 2014.9 Broken SysVinit script -- Consul fails to start on RHEL platforms (Amazon Linux, CentOS, etc.) Apr 2, 2015
@agperson
Copy link
Author

agperson commented Apr 2, 2015

updated title.

@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 a pull request may close this issue.

2 participants