The cull_idle_servers.py
file provides a script to cull and shut down idle single-user notebook servers. This script is used when cull-idle is run as a Service or when it is run manually as a standalone script.
https://github.com/jupyterhub/jupyterhub/tree/master/examples/cull-idle