mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-07 08:34:00 +01:00
9 lines
233 B
Bash
Executable File
9 lines
233 B
Bash
Executable File
#!/bin/bash
|
|
SLEEP_SECONDS=${HOUSEKEEPING_INTERVAL:=86400}
|
|
echo "Interval set to ${SLEEP_SECONDS} seconds"
|
|
while true; do
|
|
date
|
|
/opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py housekeeping
|
|
sleep "${SLEEP_SECONDS}s"
|
|
done
|