From 8f0a5972cbefcd649e45dc007bb8fa7238355b0b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 13 Aug 2019 16:34:25 +0300 Subject: drop the dependency on config-links --- %HOME%/.config/systemd/user/linux-status.service | 10 --------- README.md | 28 ++++-------------------- systemd/linux-status.service | 12 ++++++++++ 3 files changed, 16 insertions(+), 34 deletions(-) delete mode 100644 %HOME%/.config/systemd/user/linux-status.service create mode 100644 systemd/linux-status.service diff --git a/%HOME%/.config/systemd/user/linux-status.service b/%HOME%/.config/systemd/user/linux-status.service deleted file mode 100644 index 366907a..0000000 --- a/%HOME%/.config/systemd/user/linux-status.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=linux-status - -[Service] -Type=simple -WorkingDirectory=/srv/linux-status -ExecStart=/usr/bin/python3 -m http.server --cgi 18101 - -[Install] -WantedBy=default.target 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/systemd/linux-status.service b/systemd/linux-status.service new file mode 100644 index 0000000..3ba1964 --- /dev/null +++ b/systemd/linux-status.service @@ -0,0 +1,12 @@ +# Adjust as you see fit: + +[Unit] +Description=linux-status + +[Service] +Type=simple +WorkingDirectory=%h/workspace/personal/linux-status +ExecStart=/usr/bin/python3 -m http.server --cgi 18101 + +[Install] +WantedBy=default.target -- cgit v1.2.3