2003-01-02 04:29:21 +08:00
|
|
|
<sect2>
|
2003-09-15 06:49:33 +08:00
|
|
|
<title><acronym>CUPS</acronym> Configuration</title>
|
2003-01-02 04:29:21 +08:00
|
|
|
|
2003-09-15 06:49:33 +08:00
|
|
|
<para>Configuration of <acronym>CUPS</acronym> is dependent on the type
|
|
|
|
of printer and can be complex. Generally, postscript printers are easier.
|
|
|
|
For detailed instructions on configuration and use of <acronym>CUPS</acronym>,
|
|
|
|
see <ulink url="http://www.cups.org/documentation.php"/>. The Software
|
|
|
|
Administrators Manual and Software Users Manual are particularly useful.</para>
|
2003-01-02 04:29:21 +08:00
|
|
|
|
2003-09-15 06:49:33 +08:00
|
|
|
<para>During the install, <acronym>CUPS</acronym> created the startup file
|
|
|
|
<filename>/etc/rc.d/init.d/cups</filename>. The file works, but you may
|
|
|
|
want to change it to a more conventional <acronym>LFS</acronym> startup file:</para>
|
2003-01-02 04:29:21 +08:00
|
|
|
|
2003-09-24 04:34:30 +08:00
|
|
|
<screen><userinput><command>cat > /etc/rc.d/init.d/cups << "EOF"</command>
|
2003-01-02 04:29:21 +08:00
|
|
|
#!/bin/sh
|
|
|
|
# Begin $rc_base/init.d/cups
|
|
|
|
|
|
|
|
# Start or stop the CUPS server based upon the first argument to the script.
|
|
|
|
|
|
|
|
source /etc/sysconfig/rc
|
|
|
|
source $rc_functions
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
start)
|
|
|
|
echo "Starting CUPS Printserver..."
|
|
|
|
loadproc /usr/sbin/cupsd
|
|
|
|
;;
|
|
|
|
stop)
|
|
|
|
echo "Stopping CUPS Printserver..."
|
|
|
|
killproc cupsd
|
|
|
|
;;
|
|
|
|
|
|
|
|
reload)
|
|
|
|
echo "Reloading CUPS Printserver..."
|
|
|
|
reloadproc /usr/sbin/cupsd
|
|
|
|
;;
|
|
|
|
|
|
|
|
restart)
|
|
|
|
$0 stop
|
|
|
|
sleep 1
|
|
|
|
$0 start
|
|
|
|
;;
|
|
|
|
|
|
|
|
status)
|
|
|
|
statusproc cupsd
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo "Usage: $0 {start|stop|reload|restart|status}"
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# End $rc_base/init.d/cups startup script.
|
2003-09-24 04:34:30 +08:00
|
|
|
<command>EOF</command></userinput></screen>
|
2003-01-02 04:29:21 +08:00
|
|
|
|
2003-09-15 06:49:33 +08:00
|
|
|
<para>Create the symbolic links to this file in the relevant
|
|
|
|
<filename class="directory">rc.d</filename> directory
|
|
|
|
with the following commands:</para>
|
2003-01-02 04:29:21 +08:00
|
|
|
|
2003-09-15 06:49:33 +08:00
|
|
|
<screen><userinput><command>cd /etc/rc.d/init.d &&
|
|
|
|
ln -sf ../init.d/cups ../rc0.d/K00cups &&
|
|
|
|
ln -sf ../init.d/cups ../rc2.d/S99cups &&
|
|
|
|
ln -sf ../init.d/cups ../rc3.d/S99cups &&
|
|
|
|
ln -sf ../init.d/cups ../rc5.d/S99cups</command></userinput></screen>
|
2003-01-02 04:29:21 +08:00
|
|
|
|
|
|
|
</sect2>
|