-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
; An example how to run `luxws-exporter` on systemd. | ||
; Adapt at least `ExecStart` below to your environment and copy this file to | ||
; /etc/systemd/system/. | ||
[Unit] | ||
Description=Prometheus exporter for working with heat pump controllers from Alpha Innotec and other manufacturers. https://github.com/hansmi/wp2reg-luxws | ||
; Start after the network has been configured | ||
After=network-online.target | ||
Wants=network-online.target | ||
StartLimitInterval=200 | ||
StartLimitBurst=5 | ||
|
||
[Service] | ||
Type=simple | ||
; ===> Set the path and flags according to your environment. <================ | ||
ExecStart=/usr/local/sbin/luxws-exporter --controller.address=192.168.0.1:8214 --controller.address.http=192.168.0.1:80 --controller.language=cz --web.listen-address=localhost:9101 | ||
Restart=always | ||
RestartSec=30 | ||
; The fields below are optional, but strongly recommended: The service is put | ||
; into an empty runtime directory chroot, i.e. the runtime directory which | ||
; usually resides under /run. See also https://unix.stackexchange.com/q/635027/22339 | ||
DynamicUser=yes | ||
User=luxws-exporter | ||
Group=luxws-exporter | ||
RuntimeDirectory=luxws-exporter | ||
|
||
[Install] | ||
WantedBy=multi-user.target |