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

Ensure that our venv is configured before we try and start any daemons. #120

Conversation

lamby
Copy link
Contributor

@lamby lamby commented Oct 25, 2015

This is to ensure a consistent environment from the 1st and nth install
of a package - currently invoke-rc.d daemon start is called before we
have run our interpreter updates.

Signed-off-by: Chris Lamb chris@chris-lamb.co.uk

This is to ensure a consistent environment from the 1st and nth install
of a package - currently `invoke-rc.d daemon start` is called before we
have run our interpreter updates.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
@lamby
Copy link
Contributor Author

lamby commented Oct 25, 2015

There might be a parallel issue with dh_systemd etc.

@nailor
Copy link
Collaborator

nailor commented Nov 2, 2015

The change itself looks good, but could you give some more explanation for the change here? We are talking about the build script, so the '1st and nth install' part escapes me a bit (or it's just my brain being slow on a Monday)

@lamby
Copy link
Contributor Author

lamby commented Nov 2, 2015

If you look at the generated postinst, the dh_installinit snippet is before the dh_virtualenv one. Thus we can start daemons before we are setup completely. Worse, as daemon starting can be async the behaviour will be non-deterministic :)

@nailor
Copy link
Collaborator

nailor commented Nov 2, 2015

Ah, of course!

Consider this merged :)

nailor added a commit that referenced this pull request Nov 2, 2015
…tscripts-called

Ensure that our venv is configured before we try and start any daemons.
@nailor nailor merged commit 60b532e into spotify:master Nov 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants