all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: <znavko@tutanota.com>
Cc: Help Guix <help-guix@gnu.org>
Subject: Re: Features of installing package that works as service
Date: Wed, 28 Nov 2018 07:31:32 +0100 (CET)	[thread overview]
Message-ID: <LSO-zSI--3-1@tutanota.com> (raw)
In-Reply-To: <87a7luwqa8.fsf@fastmail.com>

[-- Attachment #1: Type: text/plain, Size: 1447 bytes --]

Thank you, Joshua Branson!
Your code helped me a bit

(use-modules  (gnu services databases) )
(services (cons*  (service postgresql-service-type)
%desktop-services))

After `guix reconfigure /etc/config.scm` and reboot postgresql server is running:
# herd status | grep postgre
 + postgres

The only one change I want to do. Please, how to disable auto-start of postgresql? I need it sometimes and want to start it manually only. I think there should be some guile function like '(service postgresql-service-type (config no-autostart))', but qwant search does not give the answer. 
I've read 'start' and 'stop' options here https://www.gnu.org/software/guix/manual/en/guix.html#Shepherd-Services <https://www.gnu.org/software/guix/manual/en/guix.html#Shepherd-Services> 
and here
https://www.gnu.org/software/shepherd/manual/shepherd.html#index-Configuration-file <https://www.gnu.org/software/shepherd/manual/shepherd.html#index-Configuration-file>
 and tried to find out here http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/databases.scm <http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/databases.scm>
But I did not get the answer for those 10 minutes I've spend there.
I tried with no success:
(service postgresql-service-type (unstartable '()) )
(service postgresql-service-type (config (unstartable '()) )(service postgresql-service-type (let (unstartable '())) )

Please, how to do this?


[-- Attachment #2: Type: text/html, Size: 2101 bytes --]

  reply	other threads:[~2018-11-28  6:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-27  9:38 Features of installing package that works as service znavko
2018-11-27 14:25 ` Joshua Branson
2018-11-28  6:31   ` znavko [this message]
     [not found]   ` <<87a7luwqa8.fsf@fastmail.com>
     [not found]     ` <LSO-zSI--3-1@tutanota.com-LSO2Gyh----1>
2018-11-28  7:05       ` znavko
2018-11-29 12:08         ` Joshua Branson
2018-11-27 17:04 ` Tonton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=LSO-zSI--3-1@tutanota.com \
    --to=znavko@tutanota.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.