If your question was about the mechanism of wrapping runsv:
mv /bin/runsv /bin/runsv.real
cat > /bin/runsv <<EOF
#!/bin/sh
exec local-reaper /bin/runsv.real "$_at_"
EOF
chmod 755 /bin/runsv
Of course, the best solution is still to do nothing and forget that
subreapers are even a thing. (And also to switch to s6. :P)
--
Laurent
Received on Thu Feb 02 2017 - 16:50:03 UTC