unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Christopher Allan Webber <cwebber@dustycloud.org>
Cc: guix-devel@gnu.org
Subject: Re: [herd] Have status display services as a bulleted list.
Date: Sat, 26 Nov 2016 00:08:59 +0100	[thread overview]
Message-ID: <87y407p378.fsf@gnu.org> (raw)
In-Reply-To: <87h96wi2fn.fsf@dustycloud.org> (Christopher Allan Webber's message of "Thu, 24 Nov 2016 22:55:08 -0600")

Christopher Allan Webber <cwebber@dustycloud.org> skribis:

> Ludovic Courtès writes:
>
>> Christopher Allan Webber <cwebber@dustycloud.org> skribis:
>>
>>> I don't know about you, but I am totally unable to read the
>>> "herd status" line as it exists in the current state.  I mean, I love
>>> sexps, but even I don't like a completely flat and ungreppable list
>>> printed to stdout.
>>
>> Agreed!
>>
>>> *** New output ***
>>>
>>> cwebber@oolong:~/devel/shepherd$ sudo ./herd -s /var/run/shepherd/socket status
>>> Started:
>>>  + file-system-/run/systemd
>>>  + xorg-server
>>>  + file-system-/sys/fs/cgroup/cpuacct
>>>  + file-system-/mnt/debian
>>>  + syslogd
>>>  + term-tty1
>>>  + root-file-system
>>>  + file-system-/sys/fs/cgroup/blkio
>>>  + avahi-daemon
>>
>> Works for me!  I’m just wondering if there are ideas we could/should
>> follow more closely the output of ‘systemctl status’.  IIRC, it displays
>> a couple of lines for each service; for instance, we could display the
>> “running” value and dependencies of each service, indented below its
>> name.
>>
>> WDYT?  Would that make sense?
>>
>> Ludo’.
>
> It's a good idea, and I think we should shoot for better output.
> Listing a tree of dependencies is a great idea.
>
> But I'm unlikely to have time to get to it soon.  I think it should be
> on our TODO list, but for now, the preceding patch will still be a nice
> improvement.

You’re right.  Applied with an adjusted test.

Thank you!

Ludo’.

      reply	other threads:[~2016-11-25 23:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-23 21:03 [herd] Have status display services as a bulleted list Christopher Allan Webber
2016-11-24  8:28 ` Hartmut Goebel
2016-11-24  9:00   ` Alex Sassmannshausen
2016-11-24 16:16 ` Ludovic Courtès
2016-11-25  4:55   ` Christopher Allan Webber
2016-11-25 23:08     ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y407p378.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=cwebber@dustycloud.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).