1 | <sect2>
|
---|
2 | <title><acronym>CUPS</acronym> Configuration</title>
|
---|
3 |
|
---|
4 | <para>Configuration of <acronym>CUPS</acronym> is dependent on the type
|
---|
5 | of printer and can be complex. Generally, postscript printers are easier.
|
---|
6 | For detailed instructions on configuration and use of <acronym>CUPS</acronym>,
|
---|
7 | see <ulink url="http://www.cups.org/documentation.php"/>. The Software
|
---|
8 | Administrators Manual and Software Users Manual are particularly useful.</para>
|
---|
9 |
|
---|
10 | <para>During the install, <acronym>CUPS</acronym> created the startup file
|
---|
11 | <filename>/etc/rc.d/init.d/cups</filename>. The file works, but you may
|
---|
12 | want to change it to a more conventional <acronym>LFS</acronym> startup file:</para>
|
---|
13 |
|
---|
14 | <screen><userinput><command>cat > /etc/rc.d/init.d/cups << "EOF"
|
---|
15 | #!/bin/sh
|
---|
16 | # Begin $rc_base/init.d/cups
|
---|
17 |
|
---|
18 | # Start or stop the CUPS server based upon the first argument to the script.
|
---|
19 |
|
---|
20 | source /etc/sysconfig/rc
|
---|
21 | source $rc_functions
|
---|
22 |
|
---|
23 | case $1 in
|
---|
24 | start)
|
---|
25 | echo "Starting CUPS Printserver..."
|
---|
26 | loadproc /usr/sbin/cupsd
|
---|
27 | ;;
|
---|
28 | stop)
|
---|
29 | echo "Stopping CUPS Printserver..."
|
---|
30 | killproc cupsd
|
---|
31 | ;;
|
---|
32 |
|
---|
33 | reload)
|
---|
34 | echo "Reloading CUPS Printserver..."
|
---|
35 | reloadproc /usr/sbin/cupsd
|
---|
36 | ;;
|
---|
37 |
|
---|
38 | restart)
|
---|
39 | $0 stop
|
---|
40 | sleep 1
|
---|
41 | $0 start
|
---|
42 | ;;
|
---|
43 |
|
---|
44 | status)
|
---|
45 | statusproc cupsd
|
---|
46 | ;;
|
---|
47 |
|
---|
48 | *)
|
---|
49 | echo "Usage: $0 {start|stop|reload|restart|status}"
|
---|
50 | exit 1
|
---|
51 | ;;
|
---|
52 | esac
|
---|
53 |
|
---|
54 | # End $rc_base/init.d/cups startup script.
|
---|
55 | EOF</command></userinput></screen>
|
---|
56 |
|
---|
57 | <para>Create the symbolic links to this file in the relevant
|
---|
58 | <filename class="directory">rc.d</filename> directory
|
---|
59 | with the following commands:</para>
|
---|
60 |
|
---|
61 | <screen><userinput><command>cd /etc/rc.d/init.d &&
|
---|
62 | ln -sf ../init.d/cups ../rc0.d/K00cups &&
|
---|
63 | ln -sf ../init.d/cups ../rc2.d/S99cups &&
|
---|
64 | ln -sf ../init.d/cups ../rc3.d/S99cups &&
|
---|
65 | ln -sf ../init.d/cups ../rc5.d/S99cups</command></userinput></screen>
|
---|
66 |
|
---|
67 | </sect2>
|
---|