cups and slow boot

Questions about Grub, the liveCD and the installer
Forum rules
Before you post please read how to get help

cups and slow boot

Postby dyfet on Sun Apr 22, 2012 9:53 am

On lmde (at least since u4 rc), typically boot pauses for a few seconds on starting cups. This I found rather annoying, being that I am booting on SSD. This also seems a known issue upstream in Debian.

I did a quick hack to solve this annoyance. I enclosed most of the /etc/init.d/cups "start" code in a () & block, hence letting it fork off and finish starting while init continues to the dm. This worked great, and got me back to a ssd that boots quick again...

case "$1" in
start)
log_begin_msg "Starting $DESC: $NAME"

( mkdir -p `dirname "$PIDFILE"`
if [ "$LOAD_LP_MODULE" = "yes" -a -f /usr/lib/cups/backend/parallel \
-a -f /proc/devices -a -f /proc/modules -a -x /sbin/modprobe ]; then
modprobe -q -b lp || true
modprobe -q -b ppdev || true
modprobe -q -b parport_pc || true
fi

start-stop-daemon --start --quiet --oknodo --pidfile "$PIDFILE" --exec $DAEMON && success=1

coldplug_usb_printers
restart_xprint
) &
log_end_msg $?
# restart_xprint

Of course it would be better to find a way to do this that would be more acceptable to upsteam, but for the moment this made my ssd boots fly again...
"Information in the computer age is the last genuine free market left on earth except those free markets where indigenous people are still surviving"
User avatar
dyfet
Level 1
Level 1
 
Posts: 3
Joined: Thu Sep 08, 2011 6:14 am
Location: Cape May

Linux Mint is funded by ads and donations.
 

Return to Installation & Boot

Who is online

Users browsing this forum: No registered users and 5 guests