cupsd freezed in default runlevel. Tried to start in console, using /etc/init.d/cupsd start, it freeze, didn't show the word [OK] or even error, but cupsd is started as I can open the admin page http://localhost:631 from browsers. Played around with the *.conf files in /etc/cups/, those conf files work well with cups 1.1.15-r2 but not cups 1.1.16.
I've got the same problem. cupsd actually starts (and works) but fails to run in the background. As it stays in the foreground, the init script waits and waits and waits...
However, I have got a strange situation. I have two machine installed Gentoo Linux also cups 1.1.16, my notebook works with 1.1.16 but not my desktop. My notebook is updated from 1.1.15-r2 to 1.1.16, I tried to emerge cups 1.1.15-r2 in my desktop then update to 1.1.16 but the problem still remain. Both machines are fully compiled with gcc-3.2-r1, one is Pentium 3 while the desktop is Pentium 4, is it related? Both using kernel 2.4.19-gentoo-r9.
Same here: cups works, but the init script hangs forever. Calling "cupsd" from the command line also hangs forever. This is 1.1.16, previous version was fine. It is not gcc-3.2 related, my system is still 3.1.1. Dumping it gives the following backtrace: #0 0x004190c9 in __wait4 () at __wait4:-1 #1 0x0049ad50 in __DTOR_END__ () from /lib/libc.so.6 #2 0x0805cdd2 in main (argc=1, argv=0xb1cb5d6c) at main.c:184 #3 0x003900fe in __libc_start_main () from /lib/libc.so.6 Tail of an strace: munmap(0x290000, 35359) = 0 fork() = 32209 rt_sigaction(SIGUSR1, {0x805d3a4, [USR1], SA_STACK|SA_RESTART|SA_INTERRUPT|SA_ONESHOT|0x588e9c0}, NULL, 8) = 0 rt_sigaction(SIGHUP, {SIG_IGN}, NULL, 8) = 0 wait4(-1, 0xb988a8bc, 0, NULL) = ? ERESTARTSYS (To be restarted) --- SIGUSR1 (User defined signal 1) --- sigreturn() = ? (mask now []) wait4(-1,
this diff fixes the problem for me ([tm] as usual): --- cupsd.rc6 2002-05-05 00:45:53.000000000 +0200 +++ cupsd.rc6.fix 2002-10-19 00:57:30.000000000 +0200 @@ -9,7 +9,7 @@ start() { ebegin "Starting cupsd" - start-stop-daemon --start --quiet --exec /usr/sbin/cupsd + start-stop-daemon --start --quiet --exec /usr/sbin/cupsd -- -F & eend $? }
Sorry. Forgot to mention. Patch in the /usr/portage/net-print/cups/files directory. This will change the /etc/init.d/cupsd script after emerging. Regards, Tobias
hi. just cp /usr/portage/net-print/cups/files/cupsd.rc6 /etc/init.d/cupsd and you should be fixed. i added --background to start-stop-daemon. bye.