Verification done on Xenial.
Changing verification tags.

--

Testcase)

    $ cat <<EOF | sudo tee /etc/systemd/system/fail-on-restart. 
    [Service]
    ExecStart=/bin/false
    Restart=always
    EOF

    $ sudo systemctl daemon-reload


Before) "Active: inactive (dead)"

    $ dpkg -s systemd | grep ^Version:
    Version: 229-4ubuntu21.4

    $ sudo systemctl start fail-on-restart

    $ systemctl status -n0 fail-on-restart
       fail-on-restart.service
       Loaded: loaded (/etc/systemd/system/fail-on-restart.service; static; 
vendor p
       Active: inactive (dead)


Install/Reboot)

    $ sudo apt-get install systemd
    $ sudo reboot


After) "Active: failed (Result: start-limit-hit) since <...>"

    $ dpkg -s systemd | grep ^Version:
    Version: 229-4ubuntu21.5

    $ sudo systemctl start fail-on-restart

    $ systemctl status -n0 fail-on-restart
       fail-on-restart.service
       Loaded: loaded (/etc/systemd/system/fail-on-restart.service; static; 
vendor preset: enabled)
       Active: failed (Result: start-limit-hit) since Wed 2018-10-10 20:53:17 
UTC; 2min 34s ago
      Process: 1450 ExecStart=/bin/false (code=exited, status=1/FAILURE)
     Main PID: 1450 (code=exited, status=1/FAILURE)


** Tags removed: verification-needed verification-needed-xenial
** Tags added: verification-done verification-done-xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1795658

Title:
  xenial systemd reports 'inactive' instead of 'failed' for service
  units that repeatedly failed to restart / failed permanently

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1795658/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to