Trigger file desciptor restart condition only in /bin/ dirs #3
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resolution to issue #1 was a bit too aggressive on closer inpsection. With it we introduced behavior where any open file descriptor listed by an
lsof
command would trigger a system reboot. This would frequently include file descriptors for memory-backed anonymous files in/memfd
and shared memory objects in/dev/shm
which weren't our concern in #1. We care about binaries such asdockerd
andzabbix_agent2
still running in old versions via open file descriptors.Let's reduce the list of
lsof
results: As a good enough approximation we can begin caring only about file descriptors that point to a path that includes string/s?bin/
wheres?
is supposed to mean an optional characters
. This will cover/usr/sbin/
,/usr/local/bin/
etc. and should get us most of the way there for what the intent behind #1 was.