JustAnotherArchivist
8f77c8c72a
xargs -r flag to not run the second find if the first produces no results (GNU extension)
há 5 anos
JustAnotherArchivist
9d7a4096f9
Pipe into second find directly
há 5 anos
JustAnotherArchivist
e3a4bf6a47
Replace slow lsof with procfs access
há 5 anos
JustAnotherArchivist
4a83a54616
Print host for each stuck request
há 5 anos
JustAnotherArchivist
2b2c65f034
Print PID
há 5 anos
JustAnotherArchivist
fadb70e297
Fixed version which handles multiple roots correctly
há 5 anos
JustAnotherArchivist
d10a1d3675
First set of little things
há 5 anos
JustAnotherArchivist
a00607f28e
Initial commit
há 5 anos
JustAnotherArchivist
2a41f169c5
Add -c option to cast the return value of shutdown(2) to int explicitly on broken machines
há 6 anos
JustAnotherArchivist
8ffb48fb1b
Remove set -e/errexit, which causes the script to silently fail when no process is found with -j
há 6 anos
JustAnotherArchivist
632fbcb4d0
Replace kill with ps in process existence check
kill returns the same status whether a process doesn't exist or the current user doesn't have permission to kill, so the script returned a confusing error message in the latter case.
há 6 anos
JustAnotherArchivist
4f3cfc6e56
Add check for ptrace scope
há 6 anos
JustAnotherArchivist
96a329578e
Refactor
há 6 anos
JustAnotherArchivist
1e7ec4a56e
Executable bit
há 6 anos
JustAnotherArchivist
73877ecb96
Initial commit
há 6 anos
JustAnotherArchivist
10715f1d3a
Rewrite GDB command to stop on the first error, e.g. if lsof is broken.
The use of call("echo 'string'") instead of print('string') or sys.stdout.write('string') is due to the latter two not reliably reporting back whether they were successful or not: print doesn't return anything (and actually can't be chained like this), and the return value of sys.stdout.write depends on the Python version (None on Python 2, number of bytes written on Python 3).
há 6 anos
JustAnotherArchivist
103640a311
Make kill-wpull-connections executable
há 6 anos
JustAnotherArchivist
f7dc46991c
Check whether lsof and gdb are available
há 6 anos
JustAnotherArchivist
64e815b9a5
Better way of finding the PID for ArchiveBot jobs
há 6 anos
JustAnotherArchivist
290a4bf518
Filter out the script from the PID list when using -j
há 6 anos
JustAnotherArchivist
2787d9cd51
Initial commit
Imported from https://gist.github.com/JustAnotherArchivist/d1be04b4afec99f512ea9c3a7ffcb055
há 6 anos