[Bug 1576409] Re: calling init.d script with "status" invokes pager
martin.pitt at ubuntu.com
Mon May 9 08:43:53 UTC 2016
I have systemd 229-4ubuntu5 from xenial-proposed installed, and
"/etc/init.d/networking status" now does not invoke a pager any more.
** Tags removed: verification-needed
** Tags added: verification-done
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