Bug 928726

Summary: enable dnf-makecache.timer service by default
Product: [Fedora] Fedora Reporter: Ales Kozumplik <akozumpl>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: johannbg, jzeleny, lnykryn, metherid, mschmidt, msekleta, notting, plautrba, systemd-maint, vpavlin, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-201-2.fc18.6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-16 02:59:20 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:

Description Ales Kozumplik 2013-03-28 10:15:07 UTC
Hello,

Can you please add dnf-makecache.timer among the services enabled by default in Fedora?

the makecache service satisfies the Fedora criteria for enabling[1]:

"If a service does not require configuration to be functional and does not listen on a network socket, it may be enabled by default (but is not required to do so)."

Makecache does not listen on a socket and it is designed to work without manual configuration.

Related: bug 878826

[1] https://fedoraproject.org/wiki/Starting_services_by_default

Comment 1 Lennart Poettering 2013-04-04 17:43:22 UTC
Added to the preset file, will be in with the next upload.

Comment 2 Fedora Update System 2013-04-10 20:14:38 UTC
systemd-201-2.fc18.1 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/systemd-201-2.fc18.1

Comment 3 Fedora Update System 2013-04-11 23:27:43 UTC
Package systemd-201-2.fc18.2:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-201-2.fc18.2'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5452/systemd-201-2.fc18.2
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-04-16 00:02:16 UTC
Package systemd-201-2.fc18.4:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-201-2.fc18.4'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5452/systemd-201-2.fc18.4
then log in and leave karma (feedback).

Comment 5 Ales Kozumplik 2013-04-17 12:58:04 UTC
Hello,

it's not working:

[root@localhost ~]# rpm -q systemd
systemd-201-1.fc19.x86_64
[root@localhost ~]# rpm -ivh dnf-0.3.
dnf-0.3.1-3.git7b1d503.fc19.noarch.rpm  dnf-0.3.3-1.git8b435e9.fc19.noarch.rpm  
[root@localhost ~]# rpm -ivh dnf-0.3.3-1.git8b435e9.fc19.noarch.rpm 
Preparing...                          ################################# [100%]
Updating / installing...
   1:dnf-0.3.3-1.git8b435e9.fc19      ################################# [100%]
[root@localhost ~]# systemctl --system daemon-reload
[root@localhost ~]# systemctl status dnf-makecache.timer
dnf-makecache.timer - dnf makecache timer
   Loaded: loaded (/usr/lib/systemd/system/dnf-makecache.timer; enabled)
   Active: inactive (dead)

^ inactive/dead?

Comment 6 Ales Kozumplik 2013-04-17 12:59:00 UTC
this is what dnf.spec says:

..
%post
%systemd_post dnf-makecache.timer

%preun
%systemd_preun dnf-makecacache.timer

%postun
%systemd_postun_with_restart dnf-makecache.timer
..

Comment 7 Michal Schmidt 2013-04-17 13:24:13 UTC
(In reply to comment #5)
> [root@localhost ~]# systemctl status dnf-makecache.timer
> dnf-makecache.timer - dnf makecache timer
>    Loaded: loaded (/usr/lib/systemd/system/dnf-makecache.timer; enabled)
>    Active: inactive (dead)
> 
> ^ inactive/dead?

The standard scriptlets do not _start_ units. They merely _enable_ them.
It does say "enabled".

(In reply to comment #6)
> this is what dnf.spec says:
...
> %preun
> %systemd_preun dnf-makecacache.timer

"cacache" - typo?

Comment 8 Ales Kozumplik 2013-04-17 14:05:00 UTC
(In reply to comment #7)
> (In reply to comment #5)
> > [root@localhost ~]# systemctl status dnf-makecache.timer
> > dnf-makecache.timer - dnf makecache timer
> >    Loaded: loaded (/usr/lib/systemd/system/dnf-makecache.timer; enabled)
> >    Active: inactive (dead)
> > 
> > ^ inactive/dead?
> 
> The standard scriptlets do not _start_ units. They merely _enable_ them.
> It does say "enabled".

Ah, true.

It's strange though because if I understand the concept or enabling vs starting correctly, this will result in the service actually running on the restart. so the user installs it, it doesn't run but then he reboots and it runs. confusing.

> 
> (In reply to comment #6)
> > this is what dnf.spec says:
> ...
> > %preun
> > %systemd_preun dnf-makecacache.timer
> 
> "cacache" - typo?

What a catch, thanks.

Comment 9 Fedora Update System 2013-04-18 02:39:58 UTC
Package systemd-201-2.fc18.5:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-201-2.fc18.5'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5452/systemd-201-2.fc18.5
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2013-05-07 13:41:54 UTC
systemd-201-2.fc18.6 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/FEDORA-2013-5452/systemd-201-2.fc18.6

Comment 11 Fedora Update System 2013-05-09 10:03:52 UTC
Package systemd-201-2.fc18.6:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-201-2.fc18.6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5452/systemd-201-2.fc18.6
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2013-05-16 02:59:20 UTC
systemd-201-2.fc18.6 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.