From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Subject: bug#29707: "guix system search" doesn't show how to start/stop service Date: Tue, 01 May 2018 01:38:26 +0200 Message-ID: <877eooi7t9.fsf@lassieur.org> References: <87h8stbo09.fsf@lassieur.org> <87zi1kyhxa.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDINt-0006Tg-Bl for bug-guix@gnu.org; Mon, 30 Apr 2018 19:39:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDINq-0005BJ-8e for bug-guix@gnu.org; Mon, 30 Apr 2018 19:39:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36625) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fDINq-0005B7-5F for bug-guix@gnu.org; Mon, 30 Apr 2018 19:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fDINp-0006NG-RA for bug-guix@gnu.org; Mon, 30 Apr 2018 19:39:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87zi1kyhxa.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 29707-done@debbugs.gnu.org Hi Ludovic, Ludovic Courtès writes: > Commit 6ac8b7359a1ac80e558f41dd37004ffa727dd3c6 does roughly what you > suggested: > > --8<---------------cut here---------------start------------->8--- > $ ./pre-inst-env guix system search slim > name: slim > location: gnu/services/xorg.scm:510:2 > extends: shepherd-root pam profile > shepherdnames: xorg-server > relevance: 3 > --8<---------------cut here---------------end--------------->8--- > > Note that there are limitations: here ‘shepherdnames’ is just the list > of names of the _default_ Shepherd services for that service type. But > due to the way service extensions work, actual Shepherd service names > can very well depend on the configuration of the service. For example, > ‘console-font-service-type’ generates a Shepherd service whose name > depends on its configuration: ‘console-font-tty1’, etc. Great! Thank you! But I don't understand why the first provision is the only one that is displayed. If it's not on purpose, here is a patch fixing it. > Besides, ‘guix system search xmpp’ currently returns nothing, but it > will return something as soon as you’ve added a ‘description’ to > ‘prosody-service-type’. If you add a ‘default-value’, you’ll get > ‘shepherdnames’ as well. Hint hint. ;-) Haha, okay I did it :-) Clément