9 lines
213 B
Bash
9 lines
213 B
Bash
|
#!/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
|
||
|
sleep ${SECONDS}s
|
||
|
done
|