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