From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#29707: "guix system search" doesn't show how to start/stop service Date: Mon, 30 Apr 2018 14:53:21 +0200 Message-ID: <87zi1kyhxa.fsf@gnu.org> References: <87h8stbo09.fsf@lassieur.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]:54176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fD8Jj-0001co-LD for bug-guix@gnu.org; Mon, 30 Apr 2018 08:54:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fD8Je-0004HL-RO for bug-guix@gnu.org; Mon, 30 Apr 2018 08:54:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:35633) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fD8Je-0004HC-NZ for bug-guix@gnu.org; Mon, 30 Apr 2018 08:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fD8Je-0001v5-Fh for bug-guix@gnu.org; Mon, 30 Apr 2018 08:54:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87h8stbo09.fsf@lassieur.org> ("=?UTF-8?Q?Cl=C3=A9ment?= Lassieur"'s message of "Thu, 14 Dec 2017 11:30:14 +0100") 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: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Cc: 29707-done@debbugs.gnu.org Hi Cl=C3=A9ment, Cl=C3=A9ment Lassieur skribis: > The "guix system search" command doesn't show how we are supposed to > start/stop the searched service. > > For example, I think it would be useful to know that "herd stop > xmpp-daemon" stops the XMPP server and "herd stop xorg-server" stops the > Xorg server. > > Neither "guix system search xorg" nor "guix system search slim" says > anything about "xorg-server". 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 =E2=80=98shepherdnames=E2=80=99 is ju= st 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, =E2=80=98console-font-service-type=E2=80=99 generates a Shepherd service wh= ose name depends on its configuration: =E2=80=98console-font-tty1=E2=80=99, etc. Besides, =E2=80=98guix system search xmpp=E2=80=99 currently returns nothin= g, but it will return something as soon as you=E2=80=99ve added a =E2=80=98descriptio= n=E2=80=99 to =E2=80=98prosody-service-type=E2=80=99. If you add a =E2=80=98default-valu= e=E2=80=99, you=E2=80=99ll get =E2=80=98shepherdnames=E2=80=99 as well. Hint hint. ;-) Cheers, Ludo=E2=80=99.