2021-09-03 12:48:30 +02:00
|
|
|
#!/bin/bash
|
2022-11-11 08:40:29 +01:00
|
|
|
SLEEP_SECONDS=${HOUSEKEEPING_INTERVAL:=86400}
|
|
|
|
echo "Interval set to ${SLEEP_SECONDS} seconds"
|
2021-09-03 12:48:30 +02:00
|
|
|
while true; do
|
|
|
|
date
|
|
|
|
/opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py housekeeping
|
2022-11-11 08:40:29 +01:00
|
|
|
sleep "${SLEEP_SECONDS}s"
|
2021-09-03 12:48:30 +02:00
|
|
|
done
|