Open tlaurion opened 7 months ago
@Zygo would be nice if bees was fixing itself on die
Putting this at the beginning of beesd should work:
#!/bin/sh
if [ -z "$UNSHARE_DONE" ]; then
UNSHARE_DONE=true
export UNSHARE_DONE
exec unshare -m --propagation private -- "$0" "$@"
fi
The drawback is that this duplicates the systemd namespacing, and requires the namespace privilege in the script to work. Maybe some additional checks to see if it's running under systemd and skip the extra unshare
call?
Hi, is this going to be fixed in the release?
Originally posted by @Massimo-B in https://github.com/Zygo/bees/issues/54#issuecomment-2014991225
Confirmed on https://github.com/Zygo/bees/commit/124507232fe5682c8b6ebe80632c33eccefa8e29 from 9 months ago