mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-07-01 07:00:15 +02:00
Merge pull request #571 from tobiasge/house
Added container for Netbox housekeeping command
This commit is contained in:
8
docker/housekeeping.sh
Executable file
8
docker/housekeeping.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/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
|
Reference in New Issue
Block a user