mirror of
https://github.com/kasmtech/workspaces-core-images.git
synced 2024-11-22 15:33:08 +01:00
KASM-4936 Fix cupsd not starting due to too high ulimit size
This commit is contained in:
parent
6e22ec8b7a
commit
200a0828fe
@ -4,7 +4,9 @@ set -ex
|
|||||||
PRINTER_NAME=${KASM_PRINTER_NAME:-Kasm-Printer}
|
PRINTER_NAME=${KASM_PRINTER_NAME:-Kasm-Printer}
|
||||||
|
|
||||||
echo "Starting cups"
|
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
|
until [[ "$(lpstat -r)" == "scheduler is running" ]]; do sleep 15; done
|
||||||
|
|
||||||
echo "Creating a virtual printer: $PRINTER_NAME"
|
echo "Creating a virtual printer: $PRINTER_NAME"
|
||||||
|
Loading…
Reference in New Issue
Block a user