From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Re: [herd] Have status display services as a bulleted list. Date: Thu, 24 Nov 2016 22:55:08 -0600 Message-ID: <87h96wi2fn.fsf@dustycloud.org> References: <87oa15j4cq.fsf@dustycloud.org> <87shqg4zvx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cA8Xc-0006z9-DW for guix-devel@gnu.org; Thu, 24 Nov 2016 23:55:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cA8XY-0001kM-96 for guix-devel@gnu.org; Thu, 24 Nov 2016 23:55:16 -0500 In-reply-to: <87shqg4zvx.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s writes: > Christopher Allan Webber 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/sock= et 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=E2=80=99m just wondering if there are ideas we could/s= hould > follow more closely the output of =E2=80=98systemctl status=E2=80=99. = IIRC, it displays > a couple of lines for each service; for instance, we could display the > =E2=80=9Crunning=E2=80=9D value and dependencies of each service, inden= ted below its > name. > > WDYT? Would that make sense? > > Ludo=E2=80=99. 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. If someone else wants to step up to make those changes, of course, great! - Chris