Your message dated Thu, 2 Jan 2025 22:19:31 +0100
with message-id <[email protected]>
and subject line git-daemon-sysvinit package removed
has caused the Debian Bug report #950696,
regarding git-daemon-sysvinit: missing-systemd-service-for-init.d-script
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
950696: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950696
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: git-daemon-sysvinit
Version: 1:2.25.0-1
Severity: normal
Dear Maintainer,
Please consider adding a native systemd service masking the already
shipped init scripts (fixes lintian tag[1] in subject).
I'm attaching my attempt at writing a service file based on
looking at the init script. Note that it's completely untested.
Things to note about the service file:
- does not reinvent start/enable of services[2], like done in init
script. (As discussed in #652355 already.)
- EnvironmentFile=... takes a file with key=value syntax, but the
shipped default /etc/default/git-daemon file has a comment stating
it's a posix script snippet....
- Might be further improved with eg. security hardening[3] etc.
Please feel free to ask for additional assistance with this issue. I'm
happy to help if you provide the testing and review (since I don't
personally use the git-daemon-sysvinit).
Regards,
Andreas Henriksson
[1]:
https://lintian.debian.org/tags/missing-systemd-service-for-init.d-script.html
[2]:
https://lintian.debian.org/tags/init.d-script-should-always-start-service.html
[3]:
https://lintian.debian.org/tags/systemd-service-file-missing-hardening-features.html
[Unit]
Description=git-daemon service
After=network.target
[Service]
Type=forking
PIDFile=/run/git-daemon.pid
Environment=GIT_DAEMON_BASE_PATH=/var/lib
Environment=GIT_DAEMON_DIRECTORY=/var/lib/git
Environment=GIT_DAEMON_OPTIONS=
Environment=GIT_DAEMON_USER=gitdaemon
EnvironmentFile=-/etc/default/git-daemon
ExecStart=/usr/lib/git-core/git-daemon --user=$GIT_DAEMON_USER
--pid-file=/run/git-daemon.pid --detach --reuseaddr --verbose
$GIT_DAEMON_OPTIONS --base-path=$GIT_DAEMON_BASE_PATH $GIT_DAEMON_DIRECTORY
[Install]
WantedBy=multi-user.target
--- End Message ---
--- Begin Message ---
Source: git
Source-Version: 1:2.47.1-1
The latest version of git in sid does not include sysvinit
configuration any more, meaning this bug no longer applies.
--- End Message ---