Fast Version Control System
Go to file
Todd Zullinger c1f934e016 daemon: use --log-destination=stderr with systemd
Using stderr rather than syslog should be a mild improvement with the
systemd journal.  The reasons are detailed in the upstream commit
0c591cacba ("daemon: add --log-destination=(stderr|syslog|none)",
2018-02-04)¹:

    The combination of --inetd with --log-destination=stderr is useful, for
    instance, when running `git daemon` as an instanced systemd service
    (with associated socket unit). In this case, log messages sent via
    syslog are received by the journal daemon, but run the risk of being
    processed at a time when the `git daemon` process has already exited
    (especially if the process was very short-lived, e.g. due to client
    error), so that the journal daemon can no longer read its cgroup and
    attach the message to the correct systemd unit (see systemd/systemd#2913
    [1]). Logging to stderr instead can solve this problem, because systemd
    can connect stderr directly to the journal daemon, which then already
    knows which unit is associated with this stream.

    [1]: https://github.com/systemd/systemd/issues/2913

While here, wrap the git-daemon command line to improve readability.

¹ https://github.com/git/git/commit/0c591cacba
2018-04-11 23:19:00 -04:00
.gitignore Check upstream GPG signatures in %prep 2016-03-27 21:31:56 -04:00
.mailmap Add .mailmap for git shortlog output 2017-11-28 21:27:36 -05:00
.rpmlint Update to 2.17.0-rc0 2018-03-16 21:56:41 -04:00
0001-daemon.c-fix-condition-for-redirecting-stderr.patch daemon: fix condition for redirecting stderr 2018-04-11 23:19:00 -04:00
0001-git-svn-avoid-warning-on-undef-readline.patch git-svn: avoid uninitialized value warning 2018-04-11 23:19:00 -04:00
git-1.8-gitweb-home-link.patch Update to 1.8.4.2 (#1024497) 2013-10-29 17:03:02 -04:00
git-cvsimport-Ignore-cvsps-2.2b1-Branches-output.patch Update to git-1.6.2.2 2009-04-04 20:47:17 +00:00
git-gui.desktop Update to git-1.6.3.2 2009-06-06 01:45:16 +00:00
git-init.el Add git-status and git-blame autoloads for emacs 2007-06-26 11:27:51 +00:00
git.socket use systemd instead of xinetd (bz 737183) 2013-04-30 14:25:37 -04:00
git.spec daemon: use --log-destination=stderr with systemd 2018-04-11 23:19:00 -04:00
git.xinetd.in Rename %gitcoredir to %gitexecdir; upstream uses the latter 2017-11-12 13:15:13 -05:00
git@.service.in daemon: use --log-destination=stderr with systemd 2018-04-11 23:19:00 -04:00
gitweb-httpd.conf Rename gitweb httpd config file 2018-03-19 11:08:38 -04:00
gitweb.conf.in Update to git-1.6.6.1 2010-01-31 21:05:27 +00:00
gpgkey-junio.asc Update Junio's GPG key 2017-09-18 13:07:51 -04:00
print-failed-test-output Include verbose logs in build output for 'make test' failures 2017-12-21 18:36:31 -05:00
sources Update to 2.17.0 2018-04-02 16:26:27 -04:00