From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: guix system: error: service 'ssh-daemon' requires 'networking', which is undefined Date: Thu, 21 Jul 2016 18:10:35 +0200 Message-ID: <87h9bjkm4k.fsf@gnu.org> References: <874m7qzvyx.fsf@gnu.org> <0329ad9f3fc879d5b76e3d9bf895d75d@tobias.gr> <87wpkhlrwi.fsf@gnu.org> <87oa5rm9hi.fsf@gnu.org> <87h9bj57iv.fsf@igalia.com> 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]:40013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQGYd-0007ax-RE for guix-devel@gnu.org; Thu, 21 Jul 2016 12:10:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQGYZ-0003S2-JZ for guix-devel@gnu.org; Thu, 21 Jul 2016 12:10:43 -0400 In-Reply-To: <87h9bj57iv.fsf@igalia.com> (Andy Wingo's message of "Thu, 21 Jul 2016 17:35:04 +0200") 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: Andy Wingo Cc: guix-devel Andy Wingo skribis: > On Thu 21 Jul 2016 16:39, "Thompson, David" wr= ites: > >> On Thu, Jul 21, 2016 at 9:57 AM, Jan Syn=C3=A1=C4=8Dek wrote: >>> On Thu, Jul 21, 2016 at 3:35 PM, Vincent Legoll >>> wrote: >>>> Is there a simple command line that would list such services ? >>>> >>>> herd list --type=3Dnetworking >>>> >>>> or something like that, that would make for the almost-perfect suggest= ion... >>> >>> Yes! I'm glad we're saying the same, even though differently:) >> >> This information is not knowable, sorry. The set of possible services >> outside of what is declared in the system configuration is infinite. > > However... if you grovel the file system for files in the load path that > have a prefix of gnu/services named .scm and load their corresponding > module and filter out only the services and get their names, then that's > not all of them but it would be good enough :) The difficulty here is that we=E2=80=99re talking about Shepherd services, = as opposed to the generic =E2=80=9Cservice=E2=80=9D type in GuixSD (info "(gui= x) Service Types and Services"). We can programmatically traverse all the existing service types exported from (gnu services =E2=80=A6), but we cannot list all the Shepherd services= that can exist. Ludo=E2=80=99.