Wednesday, April 24, 2024
 Popular · Latest · Hot · Upcoming
18
rated 0 times [  18] [ 0]  / answers: 1 / hits: 32608  / 3 Years ago, thu, july 29, 2021, 5:25:06

I have VPS, and after checking systemctl, I noticed that my fwupd-refresh.service failed.


terminal


Can you explain the problem, and could you help to fix it?


More From » server

 Answers
2

In some cases this error can be safely ignored. fwupd-refresh.service just executes /usr/bin/fwupdmgr refresh command and treats exit status 2 as success (see last 2 lines of fwupd-refresh.service). But fwupdmgr can also successfully exit with status 0, which will be wrongfully interpreted by systemd as an error.



  • systemctl cat fwupd-refresh:


    # /lib/systemd/system/fwupd-refresh.service
    [Unit]
    Description=Refresh fwupd metadata and update motd
    Documentation=man:fwupdmgr(1)
    After=network.target

    [Service]
    Type=oneshot
    CacheDirectory=fwupdmgr
    StandardError=null
    DynamicUser=yes
    RestrictAddressFamilies=AF_NETLINK AF_UNIX AF_INET AF_INET6
    SystemCallFilter=~@mount
    ProtectKernelModules=yes
    ProtectControlGroups=yes
    RestrictRealtime=yes
    SuccessExitStatus=2
    ExecStart=/usr/bin/fwupdmgr refresh


  • sudo /usr/bin/fwupdmgr refresh:


    ...
    Successfully downloaded new metadata: 0 local devices supported


  • echo $?: 0



  • man fwupdmgr:


    EXIT STATUS
    Commands that successfully execute will return "0", but commands that have no actions but successfully execute will return "2".



[#602] Friday, July 30, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
brailloni

Total Points: 122
Total Questions: 108
Total Answers: 108

Location: North Korea
Member since Tue, Apr 4, 2023
1 Year ago
brailloni questions
Tue, Jun 21, 22, 21:51, 2 Years ago
Sat, Apr 2, 22, 17:32, 2 Years ago
Mon, Oct 31, 22, 21:39, 2 Years ago
Fri, Dec 17, 21, 23:58, 2 Years ago
;