diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-08-27 16:35:00 +0200 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-08-27 16:35:00 +0200 |
commit | 1081a322f1b846fcddb3cb77f068e2e818f9d73f (patch) | |
tree | a3c30c924469a1b28ca1bf5a1a6990915db89061 /GITLAB_SHELL_VERSION | |
parent | abb5b9f6e526195c4eb027d5b7c28e070d9ac3c1 (diff) | |
download | gitlab-ce-1081a322f1b846fcddb3cb77f068e2e818f9d73f.tar.gz |
Properly daemonize the mail_room processimprove-mail_room-wrapper
The old invocation only worked by accident because we have a '&'
somewhere in the init script for expediency. When ran from a terminal,
the mail_room daemon process ended up in the session of the terminal.
This commit adds a small wrapper that tries to do the textbook
daemonization steps (double fork, setsid etc.) while also taking
care that the pidfile is written before the 'start' process exits.
Diffstat (limited to 'GITLAB_SHELL_VERSION')
0 files changed, 0 insertions, 0 deletions