[systemd-devel] [PATCH] systemctl: add "systemctl cat"

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Thu Nov 28 12:02:29 PST 2013


On Thu, Nov 28, 2013 at 10:34:10AM -0800, Shawn Landden wrote:
> v3: log_warning() inserts a trailing newline
> ---
>  TODO                      |  2 -
>  src/shared/fileio.c       | 73 ++++++++++++++++++++++++++++++++++-
>  src/shared/fileio.h       |  1 +
>  src/shared/util.c         |  2 +
>  src/systemctl/systemctl.c | 97 +++++++++++++++++++++++++++++++++++++++++++++++
>  5 files changed, 172 insertions(+), 3 deletions(-)

Hm, this seems to still need some more work:

% build/systemctl cat session-1.scope
Failed to cat : No such file or directory
# 

session-1.scope has no fragment path, just an override:
% build/systemctl show session-1.scope|grep -E 'Frag|Drop'
DropInPaths=/run/systemd/system/session-1.scope.d/90-After-systemd-user-sessions\x2eservice.conf /run/systemd/system/session-1.scope.d/90-Description.conf /run/systemd/system/session-1.scope.d/90-KillMode.conf /run/systemd/system/session-1.scope.d/90-SendSIGHUP.conf /run/systemd/system/session-1.scope.d/90-Slice.conf /run/systemd/system/session-1.scope.d/90-TimeoutStopUSec.conf

Also, manpage should be updated and shell completion scripts
would be nice to update too.

Zbyszek


More information about the systemd-devel mailing list