Demi Marie Obenour <demiobenour@gmail.com> writes:
On 7/13/26 05:42, Alyssa Ross wrote:
Demi Marie Obenour <demiobenour@gmail.com> writes:
Finish scripts can (and often will) be symbolic links to /usr/bin/cgroup-setup.
As we've previously discussed, using symlinks in s6-rc services is not a good idea. s6-rc-compile copies the contents of symlinks, meaning that if you have a symlink to a big binary, you end up with lots of copies of it in /run. It's better to use a regular execline script that execs the program you want to run.
What about having it be a symlink to an execline script? That's small enough to safely duplicate, and it keeps the code in one place in the repository.
What code? It's just a single line script that runs another program with what, one argument? And it's not like fundamentally no other service is ever going to want to do anything else in its finish script. It makes more sense for them to not be shared, so that it's not inconvenient to make service-specific finish script modifications.