diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-08-13 16:34:25 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-08-13 16:34:41 +0300 |
commit | 8f0a5972cbefcd649e45dc007bb8fa7238355b0b (patch) | |
tree | 160417316dea2dde7bfd10d652a8423aa265d515 | |
parent | "updated" -> "refreshed" (diff) | |
download | linux-status-8f0a5972cbefcd649e45dc007bb8fa7238355b0b.tar.gz linux-status-8f0a5972cbefcd649e45dc007bb8fa7238355b0b.zip |
drop the dependency on config-links
-rw-r--r-- | README.md | 28 | ||||
-rw-r--r-- | systemd/linux-status.service (renamed from %HOME%/.config/systemd/user/linux-status.service) | 4 |
2 files changed, 7 insertions, 25 deletions
@@ -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] |