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