Gentoo Archives: gentoo-dev

From: Collins Richey <erichey2@××××.com>
To: gentoo-dev@××××××××××.org
Subject: Re: [gentoo-dev] cups extras
Date: Mon, 22 Oct 2001 05:19:05
Message-Id: 20011022053226.0af77185.erichey2@home.com
In Reply to: Re: [gentoo-dev] cups extras by Collins Richey
1 On Wed, 12 Sep 2001 22:02:11 -0600 Collins Richey <erichey2@××××.com>
2 wrote:
3
4 > On Wed, 12 Sep 2001 20:34:34 -0600 Daniel Robbins
5 > <drobbins@g.o> wrote:
6 >
7 > > On Wed, Sep 12, 2001 at 07:50:27PM -0600, Collins Richey wrote:
8 > > > The cups support appears to be incomplete
9 > > >
10 > > > 1) There is no cups startup script i t can be real simple cupsd
11 > &
12 > > did
13 > > > it for me.
14 > > >
15 > > > 2) The extra printer definition files that make cups actually
16 > > usable
17 > > > seem to be missing.
18 > > >
19 > > > Any plans to correct this?
20 > >
21 > > Collins,
22 > >
23 > > How about fixing these things as you find them and submitting
24 > > patches
25 > > or corrected ebuilds? This is a community project.
26 > >
27 > > Best Regards,
28 > >
29 >
30 > Will try.
31 >
32
33 Just checking some old mails. If you haven't already corrected this,
34 here is the /etc/cupsd script that I created.
35
36 ----------start /etc/init.d/cupsd
37 #!/sbin/runscript
38
39 depend() {
40 need xinetd
41 }
42
43 autoconfig() {
44 if [ ! -e /etc/cups/cupsd.conf ] ; then
45 eerror "You need an /etc/cups/cupsd.conf file to run cupsd"
46 return 1
47 fi
48 }
49
50 start() {
51 autoconfig || return 1
52 ebegin "Starting cupsd"
53 start-stop-daemon --start --quiet --exec /usr/sbin/cupsd 1>&2
54 eend $?
55 }
56
57 stop() {
58 ebegin "Stopping cupsd"
59 start-stop-daemon --stop --quiet -u root -n cupsd 1>&2
60 # long explanation removed; basically: keep things sane
61 if [ $? -ne 0 ] ; then
62 if [ -e /dev/shm/.init.d/started/cupsd ] ; then
63 eend 0
64 fi
65 fi
66 eend $?
67 }
68 ----------end /etc/init.d/cupsd
69
70 --
71 Collins Richey
72 Denver Area
73 gentoo_rc6 xfce+sylpheed