supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: billa chaitanya <billachaitanya@gmail.com>
To: supervision@list.skarnet.org
Subject: writing s6 services
Date: Wed, 28 Oct 2020 13:31:18 +0530	[thread overview]
Message-ID: <CAH9hU4KQLq815wqpn5PCj+-+WUsGdqHmHNxP9-6PWfmuJ_ATfw@mail.gmail.com> (raw)

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

Hi Team,
Have few doubts while creating service files in s6.

1) Is there a possibility to add an ENV variable dynamically?
I have a shell script which fills out some variables like
IPADDRESS, SERVER  etc .. which I need to use in starting a process later
as part of starting a service/stopping a service.

2) Does s6-supervise has the intelligence of findingout $MAINPID as the
systemd does?(
https://systemd-devel.freedesktop.narkive.com/dpY7US7K/a-little-help-with-mainpid-please
)

Thanks,
chaitanya

             reply	other threads:[~2020-10-28  8:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-28  8:01 billa chaitanya [this message]
2020-10-28 14:01 ` Laurent Bercot
2020-11-03 11:48   ` billa chaitanya
2020-11-03 16:54     ` Guillermo

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=CAH9hU4KQLq815wqpn5PCj+-+WUsGdqHmHNxP9-6PWfmuJ_ATfw@mail.gmail.com \
    --to=billachaitanya@gmail.com \
    --cc=supervision@list.skarnet.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.
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 NNTP newsgroup(s).