Closes #6590: Introduce a nightly housekeeping command to clear expired sessions and change records

This commit is contained in:
jeremystretch
2021-06-11 10:44:17 -04:00
parent a1ba3b567c
commit d87ec82fe3
8 changed files with 93 additions and 12 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/sh
# This shell script invokes NetBox's housekeeping management command, which
# intended to be run nightly. This script can be copied into your system's
# daily cron directory (e.g. /etc/cron.daily), or referenced directly from
# within the cron configuration file.
#
# If NetBox has been installed into a nonstandard location, update the paths
# below.
/opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py housekeeping