[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [herd] Have status display services as a bulleted list.
From: |
Ludovic Courtès |
Subject: |
Re: [herd] Have status display services as a bulleted list. |
Date: |
Sat, 26 Nov 2016 00:08:59 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Christopher Allan Webber <address@hidden> skribis:
> Ludovic Courtès writes:
>
>> Christopher Allan Webber <address@hidden> 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 ***
>>>
>>> address@hidden:~/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’.