Skip to content

(#14586) Incorrect start-stop-daemon args in Debian init script#166

Merged
nicklewis merged 1 commit into
puppetlabs:masterfrom
grimradical:init_script_14586
May 24, 2012
Merged

(#14586) Incorrect start-stop-daemon args in Debian init script#166
nicklewis merged 1 commit into
puppetlabs:masterfrom
grimradical:init_script_14586

Conversation

@grimradical

Copy link
Copy Markdown
Member

When we try to stop the daemon, we were passing in --name puppetdb instead of
--exec $JAVA_BIN. Since our process isn't actually named puppetdb, that
initial call wouldn't actually terminate the process. It would then
fall-through to a second code path where the init script would then try to kill
all processes with $JAVA_BIN as the executable. That's, like, not so great
and stuff.

I've corrected the args to start-stop-daemon to use both the pidfile and the
executable name to give us a precise match. With that in place, the secondary
code path is no longer necessary.

A pleasant side-effect of this fix is that now stopping PuppetDB is extremely
fast, instead of taking 30 seconds or so.

Signed-off-by: Deepak Giridharagopal deepak@puppetlabs.com

When we try to stop the daemon, we were passing in `--name puppetdb` instead of
`--exec $JAVA_BIN`. Since our process isn't actually named puppetdb, that
initial call wouldn't actually terminate the process. It would then
fall-through to a second code path where the init script would then try to kill
*all* processes with $JAVA_BIN as the executable. That's, like, not so great
and stuff.

I've corrected the args to start-stop-daemon to use both the pidfile and the
executable name to give us a precise match. With that in place, the secondary
code path is no longer necessary.

A pleasant side-effect of this fix is that now stopping PuppetDB is extremely
fast, instead of taking 30 seconds or so.

Signed-off-by: Deepak Giridharagopal <deepak@puppetlabs.com>
nicklewis added a commit that referenced this pull request May 24, 2012
(#14586) Incorrect start-stop-daemon args in Debian init script
@nicklewis nicklewis merged commit 72e483a into puppetlabs:master May 24, 2012
wkalt pushed a commit to wkalt/puppetdb that referenced this pull request Sep 23, 2014
…eation-500

(maint) Fix 500 when trying to create group w/RBAC
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