aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--README.md28
-rw-r--r--systemd/linux-status.service (renamed from %HOME%/.config/systemd/user/linux-status.service)4
2 files changed, 7 insertions, 25 deletions
diff --git a/README.md b/README.md
index bb4d64f..18ca6a2 100644
--- a/README.md
+++ b/README.md
@@ -3,32 +3,12 @@ linux-status
Simple Linux status web pages.
-Deployment
-----------
+Usage
+-----
-Clone to /srv/linux-status and use [config-links]:
+To start a web server on port 18101:
- > pwd
- /srv/linux-status
-
- > ~/workspace/personal/config-links/update.sh
- ...
-
-or just copy linux-status.service from this repository to your $HOME:
-
- > pwd
- /srv/linux-status
-
- > mkdir -p ~/.config/systemd/user/
- > cp '%HOME%/.config/systemd/user/linux-status.service' ~/.config/systemd/user/
-
-Enable & start the service:
-
- > loginctl enable-linger "$( whoami )"
- > systemctl --user enable linux-status
- > systemctl --user start linux-status
-
-[config-links]: https://github.com/egor-tensin/config-links
+ > python3 -m http.server --cgi 18101
License
-------
diff --git a/%HOME%/.config/systemd/user/linux-status.service b/systemd/linux-status.service
index 366907a..3ba1964 100644
--- a/%HOME%/.config/systemd/user/linux-status.service
+++ b/systemd/linux-status.service
@@ -1,9 +1,11 @@
+# Adjust as you see fit:
+
[Unit]
Description=linux-status
[Service]
Type=simple
-WorkingDirectory=/srv/linux-status
+WorkingDirectory=%h/workspace/personal/linux-status
ExecStart=/usr/bin/python3 -m http.server --cgi 18101
[Install]