diff options
Diffstat (limited to '')
| -rw-r--r-- | README.md | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..415025c --- /dev/null +++ b/README.md | |||
| @@ -0,0 +1,95 @@ | |||
| 1 | Lua script for checking the health of Devuan Linux package mirrors. | ||
| 2 | |||
| 3 | This is currently under development, not everything has been written yet. | ||
| 4 | |||
| 5 | mirror-checker-lua is a Lua script used by the Devuan mirror admins | ||
| 6 | (maybe, if they like it) to check the health of Devuan Linux package | ||
| 7 | mirrors. Originally there was bash scripts for this job, then Evilham | ||
| 8 | wrote some Python scripts, now onefang has written it in Lua. We all | ||
| 9 | have different tastes in languages. lol | ||
| 10 | |||
| 11 | The main difference is that this Lua version tries to do everything, and | ||
| 12 | will be maintained. Currently the shell scripts and Python scripts are | ||
| 13 | actually being used I think. Evilham asked me to write this, after I | ||
| 14 | badgered him about his Python scripts. | ||
| 15 | |||
| 16 | The source code is at https://sledjhamr.org/cgit/mirror-checker-lua/ | ||
| 17 | |||
| 18 | The issue tracker is at https://sledjhamr.org/mantisbt/project_page.php?project_id=13 | ||
| 19 | |||
| 20 | |||
| 21 | Installation. | ||
| 22 | ------------- | ||
| 23 | |||
| 24 | Download the source. You may want to put the actual mirror-checker.lua | ||
| 25 | in someplace liku /usr/local/bin and make sure it is executable. | ||
| 26 | |||
| 27 | It should run on any recent Linux, you'll need to have the following | ||
| 28 | installed - | ||
| 29 | |||
| 30 | Luajit | ||
| 31 | |||
| 32 | wget | ||
| 33 | |||
| 34 | dig, part of BIND. On Debian based systems it'll be in the dnsutils | ||
| 35 | package. | ||
| 36 | |||
| 37 | LuaSocket, on Debian based systems it'll be in the lua-socket package. | ||
| 38 | |||
| 39 | ionice, on Debian based systems it'll be in the util-linux package. | ||
| 40 | |||
| 41 | |||
| 42 | Using it. | ||
| 43 | --------- | ||
| 44 | |||
| 45 | These examples assume you are running it from the source code directory. | ||
| 46 | A directory will be created called results, it'll be full of log files | ||
| 47 | and any files that get downloaded. There will also be results/email and | ||
| 48 | results/web directories, with the notification email and web pages with | ||
| 49 | the easy to read emails (once I write that bit). | ||
| 50 | |||
| 51 | Note that unlike typical commands, you can't run single character options | ||
| 52 | together, so this is wrong - | ||
| 53 | |||
| 54 | ./mirror-checker.lua -vvv | ||
| 55 | |||
| 56 | Instead do this - | ||
| 57 | |||
| 58 | ./mirror-checker.lua -v -v -v | ||
| 59 | |||
| 60 | Just run the script to do all of the tests - | ||
| 61 | |||
| 62 | ./mirror-checker.lua | ||
| 63 | |||
| 64 | Which will print any errors. If you don't want to see errors - | ||
| 65 | |||
| 66 | ./mirror-checker.lua -q | ||
| 67 | |||
| 68 | If you want to see warnings to (as usual, the more -v options, the more | ||
| 69 | details) - | ||
| 70 | |||
| 71 | ./mirror-checker.lua -v | ||
| 72 | |||
| 73 | Or use the usual options for the help and version number - | ||
| 74 | |||
| 75 | ./mirror-checker.lua -h | ||
| 76 | ./mirror-checker.lua --help | ||
| 77 | ./mirror-checker.lua --version | ||
| 78 | |||
| 79 | To run the tests on a specific mirror, for example pkgmaster.devuan.org - | ||
| 80 | |||
| 81 | ./mirror-checker.lua pkgmaster.devuan.org | ||
| 82 | |||
| 83 | You can use the --tests option to tune which tests are run, for example | ||
| 84 | to stop IPv6 tests, coz you don't have IPv6 - | ||
| 85 | |||
| 86 | ./mirror-checker.lua --tests=-IPv6 | ||
| 87 | |||
| 88 | To do the same, but not run the HTTPS tests either - | ||
| 89 | |||
| 90 | ./mirror-checker.lua --tests=-IPv6,-https | ||
| 91 | |||
| 92 | To only run the http integrity tests, only on IPv6 - | ||
| 93 | |||
| 94 | ./mirror-checker.lua --tests=http,Integrity,IPv6 | ||
| 95 | |||
