Commit message (Collapse) | Author | ||
---|---|---|---|
2021-03-04 | app.py: pretty print the JSON | Egor Tensin | |
2021-03-04 | add journalctl output | Egor Tensin | |
2021-03-04 | get rid of the /timers endpoit, use /status | Egor Tensin | |
2021-03-04 | update README, add some comments, etc. | Egor Tensin | |
2021-03-03 | app.py: fix a typing bug | Egor Tensin | |
2021-03-03 | no more CGI | Egor Tensin | |
The server.py script now launches a web server and handles all the requests internally, without delegating anything to external scripts. | |||
2021-03-03 | merge {reboot,poweroff}.sh into get.py | Egor Tensin | |
2021-03-03 | add server.py | Egor Tensin | |
It runs a web server and imports the request handling classes from get.py directly, hence eliminating the performance culprit (which was the `import` processing for each request). | |||
2021-03-03 | get.py: refactoring | Egor Tensin | |
2021-03-03 | Revert "get.py: don't import cgi" | Egor Tensin | |
This reverts commit 2eaa4fc9ab517b0ef0c21272766551ab3191c5ea. On second thought, I have a plan on how to deal with the performance issue. | |||
2021-03-01 | get.py: don't import cgi | Egor Tensin | |
I only use it for FieldsStorage, and it can be trivially replaced with urllib.parse while being really bad for performance. | |||
2021-02-28 | get.py: don't import cgitb | Egor Tensin | |
It's terrible for performance. | |||
2021-02-28 | get.py: add licensing notes | Egor Tensin | |
2021-02-28 | get.py: run commands in parallel + refactoring | Egor Tensin | |
I _thought_ that executing many `systemctl` calls was the performance culprit, but it's not. | |||
2021-02-27 | Python server can now be run as root | Egor Tensin | |
If run as root, the server queries all the users. | |||
2021-02-27 | merge CGI scripts into one | Egor Tensin | |