supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: "Laurent Bercot" <ska-supervision@skarnet.org>
To: "Muhammad Mahendra Subrata" <mumahendras3@gmail.com>,
	supervision@list.skarnet.org
Subject: Re: The multisubstitute commands in the run script generated by s6-usertree-maker are in a wrong order
Date: Fri, 22 Jan 2021 10:28:47 +0000	[thread overview]
Message-ID: <em1c66c02d-76f7-4863-9095-c813899ff086@elzian> (raw)
In-Reply-To: <719f5399-2d05-d6d0-7377-e4014aab1ac1@gmail.com>

>As shown above, the multisubstitute command that contains XDG_RUNTIME_DIR is put after the one that contains USER, HOME, UID, GID, and GIDLIST. If for example XDG_RUNTIME_DIR=/run/user/$UID, the $UID here will not be substituted with the user's UID since by the time $UID is substituted, $XDG_RUNTIME_DIR hasn't been substituted yet. So perhaps the order of these two multisubstitute should be inverted.

  You're right, of course. I remember testing it, and it *working*, so
I did not think any further, but in retrospect it appears my test was
incorrect.
  Thanks for the report! Fixed in git head.

  I'll give it the week-end, in case more bug-reports come in, then
I'll release 2.10.0.1.

  Note that skalibs-2.10.0.1 is out already, it fixes a bug that
manifests in execline's 'emptyenv -c' command.

--
  Laurent


  reply	other threads:[~2021-01-22 10:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-22  8:01 Muhammad Mahendra Subrata
2021-01-22 10:28 ` Laurent Bercot [this message]
2021-01-22 12:54   ` Muhammad Mahendra Subrata

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=em1c66c02d-76f7-4863-9095-c813899ff086@elzian \
    --to=ska-supervision@skarnet.org \
    --cc=mumahendras3@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).