Issue 1761: gerrit-via-war should ignore HUP
Status:  AwaitingInformation
Owner: ----
Reported by docw...@gmail.com, Jan 16, 2013
Affected Version: 2.5.1

What steps will reproduce the problem?
    From a remote box, use ssh without a terminal (e.g. via Capistrano) to start gerrit via 'gerrit.sh'.

    To manually reproduce it, start gerrit and run:

    kill -HUP $(cat logs/gerrit.pid)

What is the expected output? What do you see instead?

    I expect gerrit to remain running.  However, because closing the terminal causes a HUP to be sent, Gerrit shuts down immediately.


Please provide any additional information below.

     Usually HUP is a non-destructive command, such as reload config or reopen log files.  Having Gerrit shut down on HUP is really annoying.

     This can worked around with 'nohup', but it shouldn't be needed.
Jan 17, 2013
#1 sop@google.com
What operating system was this under? gerrit.sh uses start-stop-daemon if that is available in the OS. Otherwise it uses disown. Otherwise yes, it may die on HUP...
Status: AwaitingInformation
Jan 17, 2013
#2 docw...@gmail.com
This was CentOS 6.latest

It was run as a normal user (created just to run gerrit.sh) so it wouldn't have access to start-stop-daemon.

I'm not familiar with disown.