Use cargo-deb
to build a Debian package
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This ships also a systemd service unit and a config file for `/etc/default`
This commit is contained in:
parent
ccb05e9b02
commit
4396b9eca4
3 changed files with 32 additions and 0 deletions
10
debian/default
vendored
Normal file
10
debian/default
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
ARGS=""
|
||||
|
||||
# mightyohm-gc-exporter supports the following options:
|
||||
# -a, --address <ADDRESS> The IPv4 or IPv6 address where the metrics are served
|
||||
# [default: 127.0.0.1]
|
||||
# -b, --baud-rate <BAUD_RATE> The baudrate of the serial connection [default: 9600]
|
||||
# -p, --port <PORT> The port where the metrics are served [default: 9111]
|
||||
# -s, --serial-port <SERIAL_PORT> The port of the serial device, usually in '/dev/...'
|
||||
# [default: /dev/serial0]
|
||||
# -t, --timeout <TIMEOUT> Timeout of the serial connection in ms [default: 1000]
|
11
debian/service
vendored
Normal file
11
debian/service
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=MightyOhm Geiger Counter exporter
|
||||
|
||||
[Service]
|
||||
Group=dialout
|
||||
Restart=always
|
||||
EnvironmentFile=/etc/default/mightyohm-gc-exporter
|
||||
ExecStart=/usr/bin/mightyohm-gc-exporter $ARGS
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue