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

gmetad starts automatically with package install #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

gmetad starts automatically with package install #37

wants to merge 1 commit into from

Conversation

jamesonjlee
Copy link
Contributor

when you install the package (at least on ubuntu 12.04), it automatically starts the gmetad process, the init script dropped by the recipe makes it impossible to control that original gmetad process from the new init script.

So I just make the package stop the process (if any gets installed) immediately after the install.

alternatives are:

  1. use /etc/defaults to control the package installed version starting
  2. find the pid file and make the new init script also use it

@justizin
Copy link
Contributor

I don't necessarily object to this in the ganglia cookbook, but you might be interested to learn that The Debian Way(tm) of handling this is to install a script at /usr/sbin/policy-rc.d, the simplest of which always returns a value of 101. This prevents invoke-rc.d, which is used by package maintainers, from starting any services on installation, though it does not prevent them from being enabled to start automatically on boot.

I've been meaning to publish a generic policy-rc.d cookbook, which might wrap this more sophisticated policy-rc.d a former colleague of mine published @ https://github.com/gpapilion/policy-rc.d

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.

2 participants