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

Start consul service on runlevel 2 in sysvinit #332

Merged
merged 1 commit into from
Jul 4, 2016
Merged

Start consul service on runlevel 2 in sysvinit #332

merged 1 commit into from
Jul 4, 2016

Conversation

ghost
Copy link

@ghost ghost commented Jun 29, 2016

Current LSB header of sysvinit script defines consul service to start on runlevel 3.

Default runlevel in Debian is 2 - https://wiki.debian.org/RunLevel, so it mean that when Debian based host is restarted, then consul service is not started.

To fix this issue I have update LSB header in sysvinit script so now consul service will be launched on runlevel 2.

Default runlevel in Debian is 2 - https://wiki.debian.org/RunLevel
Sysvinit script is adjusted so that consul service is started when Debian machine is restarted.
@codecov-io
Copy link

Current coverage is 57.80%

No coverage report found for master at 2876c5e.

Powered by Codecov. Last updated by 2876c5e...be955f0

@johnbellone
Copy link
Contributor

The LSB second runlevel does not have network interfaces up, correct?

@MichaelKueller
Copy link
Contributor

Yes it does. In debian and ubuntu it is the standard runlevel and defined as the "Full multi user mode".
Look here: https://debian-administration.org/article/212/An_introduction_to_run-levels

@johnbellone
Copy link
Contributor

@ZbigniewZabost-zanox you are saying that debian based systems don't get to run level 3?

I don't really have a problem changing this but I want to make sure that we're not going to prematurely start the service when networking is not available.

@MichaelKueller
Copy link
Contributor

MichaelKueller commented Jul 4, 2016

Debian based systems by default don't make a difference between runlevels 2 to 5. Therefor a standard debian installation does not get to run level 3. (Zbigniew is my co-worker, we work on this together)

@johnbellone johnbellone merged commit 4aea643 into sous-chefs:master Jul 4, 2016
@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.

3 participants