From 209bcbbdf4ea50f7145674dd1c855eb6410a065e Mon Sep 17 00:00:00 2001 From: jwansek Date: Fri, 17 Jan 2025 00:51:12 +0000 Subject: Changed SMNP polling rate to 30s --- switch-snmp/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'switch-snmp/Dockerfile') diff --git a/switch-snmp/Dockerfile b/switch-snmp/Dockerfile index 66857fa..a056214 100644 --- a/switch-snmp/Dockerfile +++ b/switch-snmp/Dockerfile @@ -12,5 +12,6 @@ RUN pip3 install -r requirements.txt RUN rm "privateMibs(20220831).zip" RUN echo "*/1 * * * * root python3 /app/snmp-omada.py > /proc/1/fd/1 2>/proc/1/fd/2" > /etc/crontab +RUN echo "*/1 * * * * root sh -c 'sleep 30 && python3 /app/snmp-omada.py' > /proc/1/fd/1 2>/proc/1/fd/2" >> /etc/crontab ENTRYPOINT ["bash"] -CMD ["entrypoint.sh"] \ No newline at end of file +CMD ["entrypoint.sh"] -- cgit v1.2.3