You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Japie vd Linde (Jira)" <ji...@apache.org> on 2021/03/12 11:32:00 UTC

[jira] [Created] (DAEMON-432) StopTimeout flag not applied when using ProcRun

Japie vd Linde created DAEMON-432:
-------------------------------------

             Summary: StopTimeout flag not applied when using ProcRun
                 Key: DAEMON-432
                 URL: https://issues.apache.org/jira/browse/DAEMON-432
             Project: Commons Daemon
          Issue Type: Bug
    Affects Versions: 1.2.3
         Environment: Windows 2019 x64
            Reporter: Japie vd Linde


Problem steps
 * Create a service using Apache Commons Daemon (include 'StopTimeout=30') as parameter when installing the service with PRUNSRV
 * Let the service class have a Thread that never closes properly
 * Shut down service

Observe that the service cannot be stopped and waits indefinitely, until prunsrv.exe is killed using Task Manager.

Could this please be improved in the next version of Apache Commons Daemon? This problemĀ  does not help where applications may require forceful exit, due to coding bugs, making the service experience degraded as closing the service never times out.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)