supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* Rebuilding s6
@ 2024-12-01  7:02 Ian Macdonald via supervision
  2024-12-01  7:41 ` Laurent Bercot
  0 siblings, 1 reply; 2+ messages in thread
From: Ian Macdonald via supervision @ 2024-12-01  7:02 UTC (permalink / raw)
  To: supervision

Hi,

I have just started investigating s6. I installed all the
programs and, using the s6-linux-init quickstart page, appeared to have
things working.

The first few scripts I converted from svinit ( virtualfs and remount
rw) compiled and run as expected but the first script using a program
on /usr/sbin would not compile, insisting there was no such file.

I thought this may be a problem with paths and symlinks ( in LFS /bin
and /sbin are symlinks to /usr/{s}bin) so I decided to rebuild s6,s6-rc
and s6-linux-init with the --enable-absolute-paths option. 

Now the quickstart recipe can't work because there is no
/etc/s6-linux-init directory which I assume the s6-linux-init install
should have created. There were numerous install warnings about
programs not being updated.

Is there a trick to re installing the s6 programs or have I just made
an obvious mistake?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Rebuilding s6
  2024-12-01  7:02 Rebuilding s6 Ian Macdonald via supervision
@ 2024-12-01  7:41 ` Laurent Bercot
  0 siblings, 0 replies; 2+ messages in thread
From: Laurent Bercot @ 2024-12-01  7:41 UTC (permalink / raw)
  To: Ian Macdonald, supervision


>Is there a trick to re installing the s6 programs or have I just made
>an obvious mistake?

  Generally speaking, --enable-absolute-paths is a bad idea, except in
very specific situations. Things will likely work better without
that option; I suggest you rebuild the packages again without it.

  The step you're missing is probably running s6-linux-init-maker again,
after rebuilding/reinstalling the packages.

  Be aware that the default PATH set by s6-linux-init-maker is
/usr/bin:/bin, and that's what all the services will inherit. If you
have a service that needs a binary in /usr/sbin, make sure to update
the PATH in the run script for the service.
  Alternatively, if your whole infrastructure relies on binaries in
/usr/sbin, you might find it easier to adjust the default PATH for the
supervision tree, via the -p option to s6-linux-init-maker.

  HTH, and good luck,

--
  Laurent


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-01  7:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-01  7:02 Rebuilding s6 Ian Macdonald via supervision
2024-12-01  7:41 ` Laurent Bercot

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).