s6
- skarnet is working on a new s6-rc project to improve the service manager:
- https://skarnet.com/projects/s6/
- https://skarnet.com/projects/s6/frontend/
- https://skarnet.com/projects/s6/frontend/servicefiles.html
- https://skarnet.com/projects/s6/rc/
- https://skarnet.com/projects/s6/rc/concepts.html
- https://skarnet.com/projects/s6/rc/s6-rc-compile.html
- https://skarnet.com/projects/s6/rc/s6-rc-db.html
- https://skarnet.com/projects/s6/rc/s6-rcd.html
- https://skarnet.com/projects/s6/rc/s6-rc.html
- https://skarnet.com/projects/s6/rc/services.html
Notes
- For
kiss-s6-scripts
look at the folder ofs6-rc
- Switch from
contents
tocontents.d
forbundles
because skarnet deprecated it (same thing fordependencies
anddependencies.d
) - Apparently
s6-rc-db
does not do topological sorting on compiled databases when listing dependencies /dev/fd
exists on other unices and is provided under Linux for compatibility./proc/*/fd
is specific to Linux.sysctl()
the syscall is officially deprecated, but the binarysysctl
is what is recommended nowadays and uses/proc/sys
- No need to mount on
/dev/shm
as we’re symlinking it to/run/shm
which is alsotmpfs
/tmp
is a symlink to/run/tmp
which gets created on every boot (the symlink however gets created only once at the start of bootstrapping/installing the system/tmp
)- The directories
.ICE-unix
and.X11-unix
in/tmp
both belong to Xorg and thus have been removed fsck
depends onsys
to check for some features (and we should leave it to the initramfs?)- Consider having a
virtual
or adev
to bundle some services (likecore
,devpts
,fd
andshm
) - We want to be initramfs agnostic, so use mountpoint to check for
proc
andsys
(no need fordevtmpfs
becuase the kernel has options for automount and we can control that) - We need
cgroup2
to be used as older versions rely ontmpfs
on/sys/fs/cgroup
Resources
- https://github.com/skarnet/lh-bootstrap/tree/master/layout/rootfs/etc/s6-rc/source-base
- https://github.com/just-containers/s6-overlay
- https://github.com/chris2511/meta-s6-rc
- https://github.com/formula-spectre/s6-rc
- https://gitea.artixlinux.org/artix/s6-scripts
- https://codeberg.org/alecStewart1/gentoo-s6-scripts
- https://github.com/MichaelDeets/s6-scripts
- https://codeberg.org/git-bruh/s6-scripts
- https://github.com/mumahendras3/sl6ckware
- https://github.com/dslm4515/MLFS-S6-Bootscripts/tree/sh-shell
- https://github.com/jhuntwork/merelinux
- (laurent replies here) https://www.reddit.com/r/AlpineLinux/comments/ug3ipr/any_news_about_migration_from_openrc_to_s6/