Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Comments

Disable service autostart on package install#229

Merged
bors-servo merged 1 commit intoservo:masterfrom
aneeshusa:disable-service-autostart-on-package-install
Feb 29, 2016
Merged

Disable service autostart on package install#229
bors-servo merged 1 commit intoservo:masterfrom
aneeshusa:disable-service-autostart-on-package-install

Conversation

@aneeshusa
Copy link
Contributor

Debian and its derivatives will autostart services when installing
packages. However, often we need to configure installed software
before it is ready to run, so it's preferable to use Salt states and
requisites to handle package installation or upgrades, configuration
changes and service [re]starting.

Adding a policy-rc.d file with exit code 101 sets a policy which denies
this default behavior. Making this change in the install script also
prevents new builders from attempting to contact the Salt master before
they have been configured properly.

Review on Reviewable

Debian and its derivatives will autostart services when installing
packages. However, often we need to configure installed software
before it is ready to run, so it's preferable to use Salt states and
requisites to handle package installation or upgrades, configuration
changes and service [re]starting.

Adding a policy-rc.d file with exit code 101 sets a policy which denies
this default behavior. Making this change in the install script also
prevents new builders from attempting to contact the Salt master before
they have been configured properly.
@aneeshusa
Copy link
Contributor Author

@larsbergstrom this should prevent some of those spurious entries in salt-key -L we were discussing in #222.

Reminder to self: update the wiki installation instruction after this lands.

@larsbergstrom
Copy link
Contributor

@bors-servo r+

Thanks - this looks great to me! I think the wiki instruction changes will also be key for OSX, where we have to do a much more manual installation of salt.

@bors-servo
Copy link
Contributor

📌 Commit 88a9116 has been approved by larsbergstrom

@bors-servo
Copy link
Contributor

⌛ Testing commit 88a9116 with merge 79515d4...

bors-servo pushed a commit that referenced this pull request Feb 29, 2016
…nstall, r=larsbergstrom

Disable service autostart on package install

Debian and its derivatives will autostart services when installing
packages. However, often we need to configure installed software
before it is ready to run, so it's preferable to use Salt states and
requisites to handle package installation or upgrades, configuration
changes and service [re]starting.

Adding a policy-rc.d file with exit code 101 sets a policy which denies
this default behavior. Making this change in the install script also
prevents new builders from attempting to contact the Salt master before
they have been configured properly.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/229)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - travis

@bors-servo bors-servo merged commit 88a9116 into servo:master Feb 29, 2016
@aneeshusa
Copy link
Contributor Author

@larsbergstrom This PR actually only affects the Linux builders, but I've gone some more PRs in the pipeline:)

BTW, I'm testing some things on servo-macpro1 and it seems to be having some networking issues (I'm testing out installing some things through brew). I believe it's not hooked up to buildbot yet and no one else seems to be using it at the moment - is it ok if I try a reboot?

@larsbergstrom
Copy link
Contributor

@aneeshusa Go right ahead and reboot it!

@mbrubeck was the only other one looking at it, and I don't believe he's actively using it right now.

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