KASM-4936 Fix cupsd not starting due to too high ulimit size

This commit is contained in:
Mariusz Marciniak 2023-08-21 11:30:34 +02:00
parent 6e22ec8b7a
commit 200a0828fe
No known key found for this signature in database

View File

@ -4,7 +4,9 @@ set -ex
PRINTER_NAME=${KASM_PRINTER_NAME:-Kasm-Printer}
echo "Starting cups"
/usr/sbin/cupsd -f &
# HACK: Some versions of cupsd cannot handle unlimited file descriptor limit
# that docker sets..
ulimit -n 1024 &&/usr/sbin/cupsd -f &
until [[ "$(lpstat -r)" == "scheduler is running" ]]; do sleep 15; done
echo "Creating a virtual printer: $PRINTER_NAME"