Hsehdar
Hsehdar

Reputation: 123

How to gracefully shutdown procrun?

When using Apache commons daemon - procrun to run Java apps on Windows XP 32 bit platform, how to gracefully stop service?

I have read procrun documentation and set time out 120 seconds while registering service. This is not working as intended. Windows shuts down without waiting for the said time period.

While searching on internet found that Windows service has a structure and this is included in procrun.

Now the question is how to make a service accept shutdown using procrun?

FYI: Service stopping using any of the below three ways is graceful

  1. net stop service-name
  2. service-name.exe stop
  3. services.msc

Upvotes: 3

Views: 2289

Answers (1)

Hsehdar
Hsehdar

Reputation: 123

This is a bug in procrun 1.0.10 and may get a fix shortly. Kindly monitor the issue for more information

Update: Jan 22, 2013 The bug got resolved. Changes are queued in release train. Waiting for votes in ASF. Once voted (hopefully in few days) it'll be available for GA.

Update: Jan 25, 2013 The ASF commons daemon release 1.0.12 resolves this bug. Kindly download the latest release.

Upvotes: 3

Related Questions