You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Erik-Berndt Scheper (JIRA)" <ji...@apache.org> on 2010/03/31 09:44:27 UTC

[jira] Created: (DAEMON-157) Prunsrv.exe (windows daemons) should use DaemonLoader during startup

Prunsrv.exe (windows daemons) should use DaemonLoader during startup
--------------------------------------------------------------------

                 Key: DAEMON-157
                 URL: https://issues.apache.org/jira/browse/DAEMON-157
             Project: Commons Daemon
          Issue Type: Improvement
          Components: Procrun
    Affects Versions: 1.0.2
         Environment: WinNT
            Reporter: Erik-Berndt Scheper


Currently only UNIX-style common-daemons (using jsvc) use DaemonLoader to startup.

Prunsrv.exe (windows daemons) have a completely different way to startup and ignore all java classes including the DaemonLoader. 

I propose to add a support class to start windows daemons in a way that is much more similar to UNIX-style daemons.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DAEMON-157) Prunsrv.exe (windows daemons) should use DaemonLoader during startup

Posted by "Erik-Berndt Scheper (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DAEMON-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik-Berndt Scheper updated DAEMON-157:
---------------------------------------

    Attachment: WinNTDaemonLauncher.patch

Attached patch file 

> Prunsrv.exe (windows daemons) should use DaemonLoader during startup
> --------------------------------------------------------------------
>
>                 Key: DAEMON-157
>                 URL: https://issues.apache.org/jira/browse/DAEMON-157
>             Project: Commons Daemon
>          Issue Type: Improvement
>          Components: Procrun
>    Affects Versions: 1.0.2
>         Environment: WinNT
>            Reporter: Erik-Berndt Scheper
>         Attachments: WinNTDaemonLauncher.patch
>
>
> Currently only UNIX-style common-daemons (using jsvc) use DaemonLoader to startup.
> Prunsrv.exe (windows daemons) have a completely different way to startup and ignore all java classes including the DaemonLoader. 
> I propose to add a support class to start windows daemons in a way that is much more similar to UNIX-style daemons.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (DAEMON-157) Prunsrv.exe (windows daemons) should use DaemonLoader during startup

Posted by "Mladen Turk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DAEMON-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mladen Turk resolved DAEMON-157.
--------------------------------

    Resolution: Later

Resolving as "later".
Such feature would fit into Daemon-2.0 for which my plan is to unify the codebase
for jsvc and procrun into one.
Some work has already been done as part of Commons Runtime sandbox project
to allow cross platform JVM extensions with features missing from the JVM and
which are needed to run a highly OS-bound stuff like daemons are

> Prunsrv.exe (windows daemons) should use DaemonLoader during startup
> --------------------------------------------------------------------
>
>                 Key: DAEMON-157
>                 URL: https://issues.apache.org/jira/browse/DAEMON-157
>             Project: Commons Daemon
>          Issue Type: Improvement
>          Components: Procrun
>    Affects Versions: 1.0.2
>         Environment: WinNT
>            Reporter: Erik-Berndt Scheper
>         Attachments: WinNTDaemonLauncher.patch
>
>
> Currently only UNIX-style common-daemons (using jsvc) use DaemonLoader to startup.
> Prunsrv.exe (windows daemons) have a completely different way to startup and ignore all java classes including the DaemonLoader. 
> I propose to add a support class to start windows daemons in a way that is much more similar to UNIX-style daemons.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DAEMON-157) Prunsrv.exe (windows daemons) should use DaemonLoader during startup

Posted by "Mladen Turk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DAEMON-157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12851882#action_12851882 ] 

Mladen Turk commented on DAEMON-157:
------------------------------------

One of the major things I'd like to see in the option for IPC signaling.
While this class will work with jvm mode, it won't work with java mode where there are actually
two different processes running (One for start and other one launched on stop)
There should also be some awareness in the WinNTDaemonLauncher about those two
different start/stop options.


> Prunsrv.exe (windows daemons) should use DaemonLoader during startup
> --------------------------------------------------------------------
>
>                 Key: DAEMON-157
>                 URL: https://issues.apache.org/jira/browse/DAEMON-157
>             Project: Commons Daemon
>          Issue Type: Improvement
>          Components: Procrun
>    Affects Versions: 1.0.2
>         Environment: WinNT
>            Reporter: Erik-Berndt Scheper
>         Attachments: WinNTDaemonLauncher.patch
>
>
> Currently only UNIX-style common-daemons (using jsvc) use DaemonLoader to startup.
> Prunsrv.exe (windows daemons) have a completely different way to startup and ignore all java classes including the DaemonLoader. 
> I propose to add a support class to start windows daemons in a way that is much more similar to UNIX-style daemons.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DAEMON-157) Prunsrv.exe (windows daemons) should use DaemonLoader during startup

Posted by "Erik-Berndt Scheper (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DAEMON-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik-Berndt Scheper updated DAEMON-157:
---------------------------------------

    Attachment: WinNTDaemonLauncher.patch

> Prunsrv.exe (windows daemons) should use DaemonLoader during startup
> --------------------------------------------------------------------
>
>                 Key: DAEMON-157
>                 URL: https://issues.apache.org/jira/browse/DAEMON-157
>             Project: Commons Daemon
>          Issue Type: Improvement
>          Components: Procrun
>    Affects Versions: 1.0.2
>         Environment: WinNT
>            Reporter: Erik-Berndt Scheper
>         Attachments: WinNTDaemonLauncher.patch
>
>
> Currently only UNIX-style common-daemons (using jsvc) use DaemonLoader to startup.
> Prunsrv.exe (windows daemons) have a completely different way to startup and ignore all java classes including the DaemonLoader. 
> I propose to add a support class to start windows daemons in a way that is much more similar to UNIX-style daemons.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DAEMON-157) Prunsrv.exe (windows daemons) should use DaemonLoader during startup

Posted by "Erik-Berndt Scheper (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DAEMON-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik-Berndt Scheper updated DAEMON-157:
---------------------------------------

    Attachment:     (was: WinNTDaemonLauncher.patch)

> Prunsrv.exe (windows daemons) should use DaemonLoader during startup
> --------------------------------------------------------------------
>
>                 Key: DAEMON-157
>                 URL: https://issues.apache.org/jira/browse/DAEMON-157
>             Project: Commons Daemon
>          Issue Type: Improvement
>          Components: Procrun
>    Affects Versions: 1.0.2
>         Environment: WinNT
>            Reporter: Erik-Berndt Scheper
>
> Currently only UNIX-style common-daemons (using jsvc) use DaemonLoader to startup.
> Prunsrv.exe (windows daemons) have a completely different way to startup and ignore all java classes including the DaemonLoader. 
> I propose to add a support class to start windows daemons in a way that is much more similar to UNIX-style daemons.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DAEMON-157) Prunsrv.exe (windows daemons) should use DaemonLoader during startup

Posted by "Sebb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DAEMON-157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12851896#action_12851896 ] 

Sebb commented on DAEMON-157:
-----------------------------

Seems to me that there are two related but different aspects to this:

1) Support DaemonLauncher style applications in Procrun JVM mode
This should allow the same application code to be used on both Windows and Unix.

2) IPC support for Procrun Java mode
AIUI, this is handled by signals in Jsrv using the PID file as a common link.
There may perhaps be some way to use Windows file-locking as a signalling mechanism here.

> Prunsrv.exe (windows daemons) should use DaemonLoader during startup
> --------------------------------------------------------------------
>
>                 Key: DAEMON-157
>                 URL: https://issues.apache.org/jira/browse/DAEMON-157
>             Project: Commons Daemon
>          Issue Type: Improvement
>          Components: Procrun
>    Affects Versions: 1.0.2
>         Environment: WinNT
>            Reporter: Erik-Berndt Scheper
>         Attachments: WinNTDaemonLauncher.patch
>
>
> Currently only UNIX-style common-daemons (using jsvc) use DaemonLoader to startup.
> Prunsrv.exe (windows daemons) have a completely different way to startup and ignore all java classes including the DaemonLoader. 
> I propose to add a support class to start windows daemons in a way that is much more similar to UNIX-style daemons.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.