#!/bin/sh if [ ! -f /etc/bolixo/running ] ; then exit 0 fi if [ -S /var/lib/lxc/sessiond/rootfs/var/run/blackhole/bo-sessiond.sock ] ; then # Erase anonymous session older than 1 day flock --close /var/run/bolixo-restart.lock bolixo-production eraseanon 1d 1 0 0 >/dev/null # Erase other type of sessions older than 5 days flock --close /var/run/bolixo-restart.lock bolixo-production eraseanon 5d 0 1 1 >/dev/null fi