include these bits
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
/target/
|
/target/
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
|
.env
|
||||||
|
|||||||
10
Cargo.toml
10
Cargo.toml
@@ -13,3 +13,13 @@ rppal = "0.22"
|
|||||||
tokio = { version = "1", features = ["macros", "rt-multi-thread", "signal", "sync", "time"] }
|
tokio = { version = "1", features = ["macros", "rt-multi-thread", "signal", "sync", "time"] }
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||||
|
|
||||||
|
# Had to pin stack for rpi
|
||||||
|
idna_adapter = "=1.2.1"
|
||||||
|
icu_collections = "=2.1.1"
|
||||||
|
icu_locale_core = "=2.1.1"
|
||||||
|
icu_normalizer = "=2.1.1"
|
||||||
|
icu_normalizer_data = "=2.1.1"
|
||||||
|
icu_properties = "=2.1.2"
|
||||||
|
icu_properties_data = "=2.1.2"
|
||||||
|
icu_provider = "=2.1.1"
|
||||||
|
|||||||
10
README.md
10
README.md
@@ -24,3 +24,13 @@ sudo systemctl enable --now towerd
|
|||||||
sudo systemctl status towerd
|
sudo systemctl status towerd
|
||||||
sudo journalctl -u towerd -f
|
sudo journalctl -u towerd -f
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Config
|
||||||
|
|
||||||
|
Edit in `/etc/towerd/env`
|
||||||
|
|
||||||
|
```
|
||||||
|
TOWERD_INFLUX_TOKEN=<token>
|
||||||
|
TOWERD_INFLUX_ORG=<org>
|
||||||
|
TOWERD_INFLUX_BUCKET=<xyz>
|
||||||
|
```
|
||||||
@@ -5,6 +5,7 @@ After=multi-user.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=root
|
User=root
|
||||||
|
EnvironmentFile=-/etc/towerd/env
|
||||||
WorkingDirectory=/opt/towerd
|
WorkingDirectory=/opt/towerd
|
||||||
ExecStart=/opt/towerd/target/release/towerd
|
ExecStart=/opt/towerd/target/release/towerd
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|||||||
Reference in New Issue
Block a user