From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joshua Branson Subject: Re: Features of installing package that works as service Date: Tue, 27 Nov 2018 09:25:51 -0500 Message-ID: <87a7luwqa8.fsf@fastmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gReIu-0007rV-7F for help-guix@gnu.org; Tue, 27 Nov 2018 09:25:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gReIp-00074o-Av for help-guix@gnu.org; Tue, 27 Nov 2018 09:25:32 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:55577) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gReIp-0006ob-0D for help-guix@gnu.org; Tue, 27 Nov 2018 09:25:27 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 65F32D9D for ; Tue, 27 Nov 2018 09:25:24 -0500 (EST) Received: from dobby (unknown [72.12.220.132]) by mail.messagingengine.com (Postfix) with ESMTPA id 8BDDF102F5 for ; Tue, 27 Nov 2018 09:25:23 -0500 (EST) In-Reply-To: (znavko's message of "Tue, 27 Nov 2018 10:38:22 +0100 (CET)") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org writes: > Hello, Guix Help! I think GuixSD is cute, but manual is so incomprehensible https://www.gnu.org/software/guix/manual/en/guix.html Have you read the entire manual? I know I haven't. Before your complain that the manual is difficult to understand, be sure that you read all of it. There's lots of good details in the manual. :) > > I want to clear all possible options when I install packages that work as services. > For example, can get postgresql by typing by non-root user `$ guix package -i postgresql` and run it? How to run it? If you intend to run it yourself, you can run that command. But you don't want to actually run guix package -i postgresql. > > Can I install postgresql and run it only when I need? > > Do I need install it only from defining service in config.scm and typing `# guix system reconfigure config.scm` ? Basically yes. https://www.gnu.org/software/guix/manual/en/guix.html#Database-Services The (gnu services databases) module provides the following services. So your config would look a little like: (use-modules (gnu services database)) ... ;; your postgresql service definition here. ;; I think the below is correct, but I'm not certain. (services (cons* (service postgresql-service-type) %base-services )) > > Manual "6.2.15 Defining Services" has lot of variables and I do not know where to find them definitions.