unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Vladilen Kozin <vladilen.kozin@gmail.com>
To: guix-devel@gnu.org
Subject: how to print values inside shepherd service gexp
Date: Fri, 24 Mar 2023 14:55:13 +0000	[thread overview]
Message-ID: <CACw=CXOUDDAhhe6UaJtU5FH80zVR_2tyqMwEma2S6SwD8CuMew@mail.gmail.com> (raw)

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

Hello. I probably have all phases screwed up in my head now.

(shepherd-service
  (start
#~(make-forkexec-constructor
                   some-command
                   #:directory (pk #$twgter-directory)
                   #:log-file (pk #$twgter-log-file))
))

If we instantiate this process in our OS declaration under services and
then run that OS inside a container and `herd start this-service`, where
would the above (pk ..) values show up? They aren't in /var/log/messages
and they aren't in whatever #:log-file we specified. I imagine this gexp
turns into a Guile script somewhere inside the store and Shepherd runs it
when we start the service.

More generally, how to I print stuff inside gexps that are part of services.

Thank you

-- 
Best regards
Vlad Kozin

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

             reply	other threads:[~2023-03-24 15:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-24 14:55 Vladilen Kozin [this message]
2023-03-27  8:52 ` how to print values inside shepherd service gexp Attila Lendvai

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to='CACw=CXOUDDAhhe6UaJtU5FH80zVR_2tyqMwEma2S6SwD8CuMew@mail.gmail.com' \
    --to=vladilen.kozin@gmail.com \
    --cc=guix-devel@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).