[Pkg-sysvinit-devel] Bug#765181: sysvinit: (invoke-rc.d|service) status should pass --lines=0 to systemctl
Ansgar Burchardt
ansgar at debian.org
Mon Oct 13 19:57:22 UTC 2014
Package: sysv-rc
Version: 2.88dsf-53.3
Priority: wishlist
X-Debbugs-Cc: pkg-systemd-maintainers at lists.alioth.debian.org
Hi,
as discussed with Michael Biebl on IRC this morning, please consider
changing how invoke-rc.d forwards commands to systemctl: the status
action should pass --lines=0, i.e. "invoke-rc.d ${x} status" should call
"systemctl --lines=0 status ${x}". Please also implement the same change
in the "service" utility.
This avoids accessing the journal which can be slow if a persistant
journal on rotating disks is used (it's very slow on my netbook). The
status action is used by service monitors[2] and thus should always
return quickly.
Please also consider forwarding the "try-restart", "reload-or-restart"
and "reload-or-try-restart" actions to the respective systemctl
commands.
See also [1] for the corresponding change in systemd's init script hook.
Ansgar
[1] <https://bugs.debian.org/765175>
[2] Ideally these should use "systemctl --quiet is-active" on systems
using systemd as init.
More information about the Pkg-sysvinit-devel
mailing list