Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673140 - =sys-apps/fwupd-1.2.1: daemon shuts down on idle causing init script to be in crashed state
Summary: =sys-apps/fwupd-1.2.1: daemon shuts down on idle causing init script to be in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-14 16:34 UTC by Till Schäfer
Modified: 2019-01-02 09:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Till Schäfer 2018-12-14 16:34:03 UTC
Newer versions of fwupd seems to automatically terminate itself, when idling for more than two hours. This causes the openrc init script to display the status "crashed". 



Dec 14 13:13:06 granit fwupd-debug: 12:13:06:0495 FuHistory            got schema version of 2
Dec 14 13:13:06 granit fwupd-debug: 12:13:06:0495 FuEngine             Emitting PropertyChanged('Status'='idle')
Dec 14 13:13:06 granit fwupd-debug: 12:13:06:0495 FuMain               Emitting PropertyChanged('Status'='idle')
Dec 14 13:13:06 granit fwupd-debug: 12:13:06:0504 FuMain               Daemon ready for requests
Dec 14 13:13:06 granit fwupd-debug: 12:13:06:0514 FuMain               FuMain: acquired name: org.freedesktop.fwupd
Dec 14 15:13:06 granit fwupd-debug: 14:13:06:0350 FuIdle               status now shutdown
Dec 14 15:13:06 granit fwupd-debug: 14:13:06:0350 FuEngine             Emitting PropertyChanged('Status'='shutdown')
Dec 14 15:13:06 granit fwupd-debug: 14:13:06:0350 FuMain               Emitting PropertyChanged('Status'='shutdown')
Dec 14 15:13:06 granit fwupd-debug: 14:13:06:0352 FuPlugin             performing destroy() on upower
Dec 14 15:13:06 granit fwupd-debug: 14:13:06:0352 FuPlugin             performing destroy() on flashrom
Dec 14 15:13:06 granit fwupd-debug: 14:13:06:0352 FuPlugin             performing destroy() on uefi
Dec 14 17:18:33 granit /etc/init.d/fwupd[673]: status: crashed
Comment 1 Till Schäfer 2018-12-14 16:58:23 UTC
It seems that there is the config option IdleTimeout in /etc/fwupd/daemon.conf. If this is set to 0, there is no idle. 

However, it might be better to just install the provided dbus service, which starts the daemon on demand: 

https://github.com/hughsie/fwupd/blob/master/data/org.freedesktop.fwupd.service.in

The dbus service is not installed by the ebuild.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-01-02 09:21:38 UTC
(In reply to Till Schäfer from comment #1)
> It seems that there is the config option IdleTimeout in
> /etc/fwupd/daemon.conf. If this is set to 0, there is no idle. 
> 
> However, it might be better to just install the provided dbus service, which
> starts the daemon on demand: 
> 
> https://github.com/hughsie/fwupd/blob/master/data/org.freedesktop.fwupd.
> service.in
> 
> The dbus service is not installed by the ebuild.

Well, according to the build system, this file only gets built/installed when the "systemd" USE flag is enabled.
So this is no solution for openrc users.
Comment 3 Larry the Git Cow gentoo-dev 2019-01-02 09:30:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61874ff149cd353bf7d5c694251824526cd71f11

commit 61874ff149cd353bf7d5c694251824526cd71f11
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-01-02 09:26:51 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-01-02 09:30:38 +0000

    sys-apps/fwupd: Bump to version 1.2.2
    
    Set IdleTimeout to 0 in daemon.conf when USE="-systemd"
    
    Closes: https://bugs.gentoo.org/673140
    Package-Manager: Portage-2.3.53, Repoman-2.3.12
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 sys-apps/fwupd/Manifest           |   1 +
 sys-apps/fwupd/fwupd-1.2.2.ebuild | 129 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 130 insertions(+)