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