s6-rc: remove a couple more unused files from the live dir

This commit is contained in:
Colin 2024-03-26 00:22:14 +00:00
parent cb8e9b7a23
commit 2cabe51956
1 changed files with 3 additions and 2 deletions

View File

@ -290,12 +290,13 @@ in
s6-svscanctl -tb "$SCANDIR"
wait "$SVSCAN"
# cleanup the servicedirs: remove files which s6-svscan will want to create for itself
# cleanup the servicedirs: remove files which s6-svscan will want to create for itself.
# TODO: is it also worth removing the binaries, which should be ignored, as a precaution?
rm "$LIVE/servicedirs"/*/supervise/{control,death_tally,lock,status}
rmdir "$LIVE/servicedirs"/*/{event,supervise}
mkdir "$LIVE/servicedirs/.s6-svscan"
# remove unnecessary, duplicated dirs
mv "$SCANDIR/.s6-svscan" "$LIVE/servicedirs/"
rm -rf "$SCANDIR"
rm -rf "$COMPILED/servicedirs"
rm "$LIVE/scandir"