-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
we add a watchdog to restart if things break. we add a unit file. modified readme to document this mode, as well as running with telegraf.
- Loading branch information
Showing
6 changed files
with
141 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[Unit] | ||
Description=Monitors and collects data from PMS7003 | ||
Documentation=https://github.com/igor47/mini-aqm https://igor.moomers.org/minimal-viable-air-quality | ||
Requires=local-fs.target | ||
After=local-fs.target | ||
|
||
[Service] | ||
WorkingDirectory=/home/igor47/repos/mini-aqm | ||
ExecStartPre=/home/igor47/.asdf/installs/python/3.8.3/bin/poetry install | ||
ExecStart=/home/igor47/.asdf/installs/python/3.8.3/bin/poetry run ./main.py | ||
|
||
Type=notify | ||
WatchdogSec=10 | ||
RestartSec=10 | ||
Restart=always | ||
|
||
User=igor47 | ||
Group=igor47 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters