Added container for Netbox housekeeping command
Adds an additional container in which the new "housekeeping" command from Netbox v3.0.0 is run.
This commit is contained in:
parent
389e68f6ba
commit
58debafa8a
4 changed files with 27 additions and 3 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue