Turns out it's easier than I thought, both in debian and ubuntu:
lxc launch images:debian/sid sid-squid
lxc exec sid-squid bash
apt update && apt install squid -y
tail -f /var/log/squid/cache.log | grep -1 assert
In another terminal: lxc exec sid-squid bash squid -k rotate
Watch the crash in the tail: root@sid-squid:~# tail -f /var/log/squid/cache.log |grep -1 assert 2018/10/04 20:34:14 kid1| logfileRotate: daemon:/var/log/squid/access.log 2018/10/04 20:34:14 kid1| assertion failed: comm.cc:428: "!isOpen(conn->fd)" 2018/10/04 20:34:15 kid1| Set Current Directory to /var/spool/squid
Turns out it's easier than I thought, both in debian and ubuntu:
lxc launch images:debian/sid sid-squid
lxc exec sid-squid bash
apt update && apt install squid -y
tail -f /var/log/ squid/cache. log | grep -1 assert
In another terminal:
lxc exec sid-squid bash
squid -k rotate
Watch the crash in the tail: squid/cache. log |grep -1 assert /var/log/ squid/access. log
root@sid-squid:~# tail -f /var/log/
2018/10/04 20:34:14 kid1| logfileRotate: daemon:
2018/10/04 20:34:14 kid1| assertion failed: comm.cc:428: "!isOpen(conn->fd)"
2018/10/04 20:34:15 kid1| Set Current Directory to /var/spool/squid