[Bug 1576409] Re: calling init.d script with "status" invokes pager
Launchpad Bug Tracker
1576409 at bugs.launchpad.net
Thu May 12 01:23:41 UTC 2016
This bug was fixed in the package systemd - 229-4ubuntu5
systemd (229-4ubuntu5) xenial-proposed; urgency=medium
* debian/udev.postinst: Don't fail if /var/log/udev is a directory.
* Set MAC based name for USB network interfaces only for universally
administered (i. e. stable) MACs, not for locally administered (i. e.
randomly generated) ones. Drop /lib/systemd/network/90-mac-for-usb.link
(as link files don't currently support globs for MACAddress=) and replace
with an udev rule in /lib/udev/rules.d/73-special-net-names.rules.
(Closes: #812575, LP: #1574483)
* debian/extra/init-functions.d/40-systemd: Invoke status command with
--no-pager, to avoid blocking scripts that call an init.d script with
"status" with an unexpected pager process. (Closes: #765175, LP: #1576409)
* Add debian/extra/rules/70-debian-uaccess.rules: Make FIDO U2F dongles
accessible to the user session. This avoids having to install libu2f-host0
(which isn't discoverable at all) to make those devices work.
* On shutdown, unmount /tmp before disabling swap. (Closes: #788303)
-- Martin Pitt <martin.pitt at ubuntu.com> Mon, 02 May 2016 15:04:42
** Changed in: systemd (Ubuntu Xenial)
Status: Fix Committed => Fix Released
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
calling init.d script with "status" invokes pager
Status in systemd package in Ubuntu:
Status in systemd source package in Xenial:
Status in systemd package in Debian:
Running e. g. "/etc/init.d/networking status" runs a pager (less by
default). This is unexpected from an init.d script, and potentially
breaks scripts or CLI programs that do this operation, as this then
hangs eternally in the interactive pager process until the user quits
it. This reportedly happens with "vagrant up" (see original Debian bug
Run "/etc/init.d/networking status". In current xenial this invokes less which you need to quit. With the proposed fix this should return to the shell immediately without a pager.
Regression potential: very low. The main visible change is the
interactive usage of "/etc/init.d/foo status", but nothing in Ubuntu
(nor hopefully anywhere else) *relies* on the fact that systemctl
invokes a pager, particularly as this is not always done (it depends
on whether stdout is a terminal and how many lines are written).
To manage notifications about this bug go to:
More information about the foundations-bugs