diff options
author | dennis <d@ennis.no> | 2023-01-31 20:59:38 +0100 |
---|---|---|
committer | dennis <d@ennis.no> | 2023-01-31 20:59:38 +0100 |
commit | 3499ea624b67559f2c9530db4e36635106e22336 (patch) | |
tree | e2a81e6ed2368df7f538dacd479e3d2b5f4dba8a /mqtt2queue.service | |
parent | handle HAN as well (diff) | |
download | energyscripts-3499ea624b67559f2c9530db4e36635106e22336.tar.gz |
added queue, in case db-connection is down
Diffstat (limited to '')
-rw-r--r-- | mqtt2queue.service (renamed from mqtt2pgsql.service) | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mqtt2pgsql.service b/mqtt2queue.service index d400b10..a63c994 100644 --- a/mqtt2pgsql.service +++ b/mqtt2queue.service @@ -7,13 +7,11 @@ StartLimitBurst=5 Type=simple EnvironmentFile=%h/energyscripts/.env WorkingDirectory=%h/energyscripts -ExecStart=%h/energyscripts/venv/bin/python3 -u mqtt2pgsql.py +ExecStart=%h/energyscripts/venv/bin/python3 -u mqtt2queue.py Restart=on-failure TimeoutStopSec=70 RestartSec=30 -SyslogIdentifier=mqtt2pgsql -#StandardOutput=journal -#StandardError=journal +SyslogIdentifier=mqtt2queue [Install] WantedBy=default.target |