commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hsehdar <hseh...@gmail.com>
Subject [daemon] procrun ignores shutdown
Date Fri, 28 Dec 2012 02:53:20 GMT
Hi,

When using *Apache commons daemon - procrun* to run Java apps on Windows XP
32 bit platform, how to gracefully stop service before OS shut down/reboot?

I have read *procrun* documentation and set time out 120 seconds while
registering service.

While searching on internet found that Windows service has a
structure<http://msdn.microsoft.com/en-us/library/windows/desktop/ms685996%28v=vs.85%29.aspx>
and
this is included in
procrun<http://svn.apache.org/repos/asf/commons/proper/daemon/tags/COMMONS_DAEMON_1_0_4/src/native/windows/apps/prunsrv/prunsrv.c>
.

Now the question is how to register a service using procrun with states

   1. ACCEPTS_SHUTDOWN
   2. NOT_PAUSABLE

The above states can be found for any service on Windows XP by using the
command sc query <service-name>

*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

This is raised here
http://mail-archives.apache.org/mod_mbox/commons-user/201212.mbox/%3C50DCD97E.8050502%40fanello.net%3E

Thank you,
With regards,
Radheshyam L
MCRUNCHER R&D SDN BHD
+601 0760 3922

*“If you hire people just because they can do a job, they’ll work for your
money. But if you hire people who believe what you believe, they’ll work
for you with blood and sweat and tears.” — Simon Sinek*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message