Bug 1734712
| Summary: | service fail to start because systemd unit file issue | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Kai Fan <kai.f.fan> |
| Component: | apt-cacher-ng | Assignee: | Kenjiro Nakayama <knakayam> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | epel7 | CC: | alexandre.detiste, kai.f.fan, knakayam |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | apt-cacher-ng-3.7.4-2.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-01-25 00:49:13 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
The upstream solution is to use a tmpfiles.d snippet Z /run/apt-cacher-ng 0755 apt-cacher-ng apt-cacher-ng - - D /run/apt-cacher-ng 0755 apt-cacher-ng apt-cacher-ng - - FEDORA-EPEL-2023-2c493cf7a8 has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-2c493cf7a8 FEDORA-EPEL-2023-2c493cf7a8 has been pushed to the Fedora EPEL 9 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-2c493cf7a8 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-EPEL-2023-2c493cf7a8 has been pushed to the Fedora EPEL 9 stable repository. If problem still persists, please make note of it in this bug report. |
Description of problem: apt-cacher-ng service can’t start because of there’s no /var/run/apt-cacher-ng directory. As the /var/run is a runtime dir, I have to add following line into [Service] Section to make it running. [Service] RuntimeDirectory=apt-cacher-ng Version-Release number of selected component (if applicable): 3.1-4el7 How reproducible: Just install and then try start the service. Steps to Reproduce: 1. yum install apt-cacher-ng 2. systemctl start apt-cacher-ng 3. systemctl status apt-cacher-ng Actual results: apt-cacher-ng failed to start Expected results: apt-cacher-ng started as a systemd monitored service Additional info: man systemd.directrives man systemd.exec