You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Nick Griffiths (JIRA)" <ji...@apache.org> on 2011/04/17 18:51:05 UTC

[jira] [Created] (DAEMON-204) Support sending a reload message via SIGUSR2

Support sending a reload message via SIGUSR2 
---------------------------------------------

                 Key: DAEMON-204
                 URL: https://issues.apache.org/jira/browse/DAEMON-204
             Project: Commons Daemon
          Issue Type: Improvement
          Components: Jsvc
         Environment: linux/unix
            Reporter: Nick Griffiths
            Priority: Minor
             Fix For: 1.0.6


I've often wanted to be able to support config reloading (like apache's or nginx's soft reload) in our daemons, so I've been hacking around with jsvc to see how difficult it would be to add.  It seems to have been quite easy to do it via signals (patch attached), but I'm not confident with the low level c-stuff.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (DAEMON-204) Support sending a reload message via SIGUSR2

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

Nick Griffiths updated DAEMON-204:
----------------------------------

    Attachment: soft-reloadable.diff

First stab at a patch.  Comments/amendments very welcome!

> Support sending a reload message via SIGUSR2 
> ---------------------------------------------
>
>                 Key: DAEMON-204
>                 URL: https://issues.apache.org/jira/browse/DAEMON-204
>             Project: Commons Daemon
>          Issue Type: Improvement
>          Components: Jsvc
>         Environment: linux/unix
>            Reporter: Nick Griffiths
>            Priority: Minor
>             Fix For: 1.0.6
>
>         Attachments: soft-reloadable.diff
>
>
> I've often wanted to be able to support config reloading (like apache's or nginx's soft reload) in our daemons, so I've been hacking around with jsvc to see how difficult it would be to add.  It seems to have been quite easy to do it via signals (patch attached), but I'm not confident with the low level c-stuff.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (DAEMON-204) Support sending a reload message via SIGUSR2

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

Mladen Turk resolved DAEMON-204.
--------------------------------

    Resolution: Fixed

Committed the modified version of your patch.
I have mostly changed its purpose to be be a generic signaling solution.
Once the signal is received it is up to the user to decide what action will be performed. It can be like in your case a softReload or a complex failover if the SIGUSR2 represents a OS condition (like low disk space, etc...)

Anyhow, many thanks for the patch!


> Support sending a reload message via SIGUSR2 
> ---------------------------------------------
>
>                 Key: DAEMON-204
>                 URL: https://issues.apache.org/jira/browse/DAEMON-204
>             Project: Commons Daemon
>          Issue Type: Improvement
>          Components: Jsvc
>         Environment: linux/unix
>            Reporter: Nick Griffiths
>            Priority: Minor
>             Fix For: 1.0.6
>
>         Attachments: soft-reloadable.diff
>
>
> I've often wanted to be able to support config reloading (like apache's or nginx's soft reload) in our daemons, so I've been hacking around with jsvc to see how difficult it would be to add.  It seems to have been quite easy to do it via signals (patch attached), but I'm not confident with the low level c-stuff.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Issue Comment Edited] (DAEMON-204) Support sending a reload message via SIGUSR2

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

Muris Ahmovic edited comment on DAEMON-204 at 5/23/11 3:33 PM:
---------------------------------------------------------------

I have already searched for this possibility!

Would be great to include it in the next release!

      was (Author: grandon):
    I have searched already for this possibility!

Would be great to include it in the next release!
  
> Support sending a reload message via SIGUSR2 
> ---------------------------------------------
>
>                 Key: DAEMON-204
>                 URL: https://issues.apache.org/jira/browse/DAEMON-204
>             Project: Commons Daemon
>          Issue Type: Improvement
>          Components: Jsvc
>         Environment: linux/unix
>            Reporter: Nick Griffiths
>            Priority: Minor
>             Fix For: 1.0.6
>
>         Attachments: soft-reloadable.diff
>
>
> I've often wanted to be able to support config reloading (like apache's or nginx's soft reload) in our daemons, so I've been hacking around with jsvc to see how difficult it would be to add.  It seems to have been quite easy to do it via signals (patch attached), but I'm not confident with the low level c-stuff.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (DAEMON-204) Support sending a reload message via SIGUSR2

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

Muris Ahmovic commented on DAEMON-204:
--------------------------------------

I have searched already for this possibility!

Would be great to include it in the next release!

> Support sending a reload message via SIGUSR2 
> ---------------------------------------------
>
>                 Key: DAEMON-204
>                 URL: https://issues.apache.org/jira/browse/DAEMON-204
>             Project: Commons Daemon
>          Issue Type: Improvement
>          Components: Jsvc
>         Environment: linux/unix
>            Reporter: Nick Griffiths
>            Priority: Minor
>             Fix For: 1.0.6
>
>         Attachments: soft-reloadable.diff
>
>
> I've often wanted to be able to support config reloading (like apache's or nginx's soft reload) in our daemons, so I've been hacking around with jsvc to see how difficult it would be to add.  It seems to have been quite easy to do it via signals (patch attached), but I'm not confident with the low level c-stuff.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira