#!/bin/bash
# Reap CRIU checkpoint images untouched for 30 days. In-process reaping only
# collects uids that no longer resolve; this also covers a quiet host and a
# reused uid.
#
# The helper below lives under the ea-ruby27 SCL root, but this file is
# installed into the system /etc/cron.daily -- crond does not look inside the
# SCL. Its path is substituted from %{passenger_agentsdir} at %install time, so
# it cannot drift from where the helper is actually packaged.
exec /usr/share/alt-mod-passenger/utils/passenger-criu-cleanup --older-than 30
