diff --git a/images/nut-upsd/Dockerfile b/images/nut-upsd/Dockerfile index 5cfed667..fc7f99e5 100644 --- a/images/nut-upsd/Dockerfile +++ b/images/nut-upsd/Dockerfile @@ -22,6 +22,7 @@ ENV ACTIONS= \ NUT_QUIET_INIT_SSL=true \ NUT_QUIET_INIT_UPSNOTIFY=true \ POLLINTERVAL= \ + POLLONLY= \ PORT=auto \ SDORDER= \ SECRETNAME=nut-upsd-password \ diff --git a/images/nut-upsd/Dockerfile.arm32 b/images/nut-upsd/Dockerfile.arm32 index 9c8863b2..5d9064ae 100644 --- a/images/nut-upsd/Dockerfile.arm32 +++ b/images/nut-upsd/Dockerfile.arm32 @@ -15,6 +15,7 @@ ENV API_USER=upsmon \ GROUP=nut \ NAME=ups \ POLLINTERVAL= \ + POLLONLY= \ PORT=auto \ SDORDER= \ SECRET=nut-upsd-password \ diff --git a/images/nut-upsd/Dockerfile.arm64 b/images/nut-upsd/Dockerfile.arm64 index 1a8847a3..a903414d 100644 --- a/images/nut-upsd/Dockerfile.arm64 +++ b/images/nut-upsd/Dockerfile.arm64 @@ -15,6 +15,7 @@ ENV API_USER=upsmon \ GROUP=nut \ NAME=ups \ POLLINTERVAL= \ + POLLONLY= \ PORT=auto \ SDORDER= \ SECRET=nut-upsd-password \ diff --git a/images/nut-upsd/README.md b/images/nut-upsd/README.md index dce9ae37..2b653fab 100644 --- a/images/nut-upsd/README.md +++ b/images/nut-upsd/README.md @@ -52,6 +52,7 @@ NUT_DEBUG_LEVEL | 0 | verbosity of debug messages NUT_QUIET_INIT_SSL | true | inhibit superfluous startup warning NUT_QUIET_INIT_UPSNOTIFY | true | inhibit superfluous startup warning POLLINTERVAL | | Poll Interval for ups.conf +POLLONLY | | Disable USB interrupt reads PORT | auto | device port (e.g. /dev/ttyUSB0) on host SDORDER | | UPS shutdown sequence, set to -1 to disable shutdown SECRETNAME | nut-upsd-password | name of secret to use for API user diff --git a/images/nut-upsd/entrypoint.sh b/images/nut-upsd/entrypoint.sh index cca38a9c..1cf9d8d0 100755 --- a/images/nut-upsd/entrypoint.sh +++ b/images/nut-upsd/entrypoint.sh @@ -23,6 +23,9 @@ EOF if [ ! -z "$POLLINTERVAL" ]; then echo " pollinterval = $POLLINTERVAL" >> /etc/nut/ups.conf fi + if [ ! -z "$POLLONLY" ]; then + echo " pollonly" >> /etc/nut/ups.conf + fi if [ ! -z "$VENDORID" ]; then echo " vendorid = $VENDORID" >> /etc/nut/ups.conf fi