Fast Version Control System
Go to file
Todd Zullinger 743dd47b9a fix git-daemon systemd scriptlets (#1785088)
When upgrading or reinstalling git-daemon, the rpm %postun scriptlet
runs the %systemd_postun_with_restart macro with git@.service as the
argument.  The macro calls 'systemctl try-restart git@.service' which
produces an error:

    $ dnf -y update git-daemon
    [...]
      Running scriptlet: git-daemon-2.24.1-1.fc31.x86_64                        2/2
    Failed to try-restart git@.service: Unit name git@.service is missing the instance name.
    See system logs and 'systemctl status git@.service' for details.

Until systemd-242, the error was hidden because the systemd scriptlets
directed all output to /dev/null.  That was changed in systemd commit
b0ca726585 (rpm: avoid hiding errors from systemd commands, 2019-03-20),
exposing this bug in the git-daemon scriptlets.

The misconfiguration also leaves a stale symlink in /etc/systemd if
git.socket is enabled.  Removing the git-daemon package and installing
again later results in git.socket being enabled.

Neither of these are the expected nor intended outcomes.  Replace
git@.service with git.socket in the systemd scriptlets.

The issue was introduced in 906d847 (Rename git.service into
git@.service and bump release, 2014-10-24).  It went unnoticed until now
largely because the systemd scriptlets hid their output.
2019-12-22 12:19:40 -05: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
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.rpmlintrc Filter rpmlint complaint about %{_emacs_version} 2018-09-11 03:06:06 -04:00
git.skip-test-patterns Improve JGIT test prereq (jgit on Fedora >= 30 is broken) 2019-05-14 02:01:22 -04:00
git.socket use systemd instead of xinetd (bz 737183) 2013-04-30 14:25:37 -04:00
git.spec fix git-daemon systemd scriptlets (#1785088) 2019-12-22 12:19:40 -05: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 print-failed-test-output: minor improvements 2019-02-11 22:47:30 -05:00
sources update to 2.24.1 2019-12-10 13:23:30 -05:00