Bug 89892 - [cups] /usr/local/etc/rc.d/cups.sh kills boot on -CURRENT
Summary: [cups] /usr/local/etc/rc.d/cups.sh kills boot on -CURRENT
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-03 20:20 UTC by Nicolas Blais
Modified: 2005-12-04 02:01 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Blais 2005-12-03 20:20:05 UTC
After a recent change to the /etc/rc structure (rcorder etc...), having :
cups_enable="YES" in your /etc/rc.conf makes my system unbootable. The error msg is similar to:

Starting rpcbind.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/X11R6/lib /usr/local/lib /
usr/local/lib/compat/pkg
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout
Starting mountd.
Starting nfsd.
Starting apache2.
Usage: cups {reload|restart|start|status|stop}
init: can't get /dev/console for controlling terminal: Operation not permitted

Adding a comment in front of the line in /etc/rc.conf still doesn't make FreeBSD boot for some reason, but manually moving /usr/local/etc/rc.d/cups.sh to /usr/local/etc/rc.d/cups.sh.notworking now allows BSD to boot, but with the following message:

Starting rpcbind.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/X11R6/lib /usr/local/lib /
usr/local/lib/compat/pkg
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout
Starting mountd.
Starting nfsd.
Starting apache2.
Usage: cups {reload|restart|start|status|stop}
Starting SAMBA: removing stale tdbs :
/var/db/samba/connections.tdb
/var/db/samba/locking.tdb
/var/db/samba/messages.tdb
/var/db/samba/sessionid.tdb
/var/db/samba/brlock.tdb
Starting nmbd.
Starting smbd.
Starting local daemons:.

(Notice how cups still shows its usage flags).

Running /usr/local/etc/rc.d/cups.sh start manually works fine.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2005-12-03 20:23:08 UTC
Maintainer of print/cups,

Please note that PR ports/89892 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/89892

-- 
Edwin Groothuis
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2005-12-03 20:23:12 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 3 Doug Barton freebsd_committer freebsd_triage 2005-12-04 02:01:22 UTC
State Changed
From-To: feedback->closed


I just committed a temporary fix that will solve this problem. 

If the maintainer comes up with a better solution, that's 
not a problem.