source: pst/printing/lprng/lprng-config.xml@ 437ad68

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 437ad68 was 369af35a, checked in by Igor Živković <igor@…>, 20 years ago

s/source/./ in init scripts

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1776 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 2.4 KB
Line 
1<sect2>
2<title>Configuring <application>LPRng</application></title>
3
4<sect3><title>Config files</title>
5<para><filename>/etc/printcap</filename></para>
6</sect3>
7
8<sect3><title>Configuration Information</title>
9
10<para>There is no generic <filename>printcap</filename> for all
11printers. A sample printcap is loaded into the <filename
12class="directory">etc</filename>
13directory which can be some help. Information is also available at
14<ulink url="http://www.lprng.org"/> and <ulink
15url="http://www.linuxprinting.org"/>.</para>
16
17<para>The init script installed by <application>LPRng</application> is not
18consistent with <acronym>BLFS</acronym> scripts; therefore, we will create a
19new one with the following commands:</para>
20
21<screen><userinput><command>mv /etc/rc.d/init.d/lpd /etc/rc.d/init.d/lpd.orig &amp;&amp;
22cat &gt; /etc/rc.d/init.d/lpd &lt;&lt; "EOF"</command>
23#!/bin/sh
24# Begin $rc_base/init.d/lpd
25
26# Based on sysklogd script from LFS-3.1 and earlier.
27# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
28
29. /etc/sysconfig/rc
30. $rc_functions
31
32case "$1" in
33 start)
34 echo "Starting lpd..."
35 loadproc /usr/sbin/lpd
36 ;;
37
38 stop)
39 echo "Stopping lpd..."
40 killproc /usr/sbin/lpd
41 ;;
42
43 reload)
44 echo "Reloading lpd..."
45 reloadproc /usr/sbin/lpd
46 ;;
47
48 restart)
49 $0 stop
50 sleep 1
51 $0 start
52 ;;
53
54 status)
55 statusproc /usr/sbin/lpd
56 ;;
57
58 *)
59 echo "Usage: $0 {start|stop|reload|restart|status}"
60 exit 1
61 ;;
62esac
63
64# End $rc_base/init.d/lpd
65<command>EOF
66chmod 755 /etc/rc.d/init.d/lpd</command></userinput></screen>
67
68<para>Create the symbolic links to the lprng init script in the relevant
69<filename>rc.d</filename> directories with the following
70commands:</para>
71<screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
72ln -sf ../init.d/lpd ../rc0.d/K00lprng &amp;&amp;
73ln -sf ../init.d/lpd ../rc1.d/K00lprng &amp;&amp;
74ln -sf ../init.d/lpd ../rc2.d/S99lprng &amp;&amp;
75ln -sf ../init.d/lpd ../rc3.d/S99lprng &amp;&amp;
76ln -sf ../init.d/lpd ../rc4.d/S99lprng &amp;&amp;
77ln -sf ../init.d/lpd ../rc5.d/S99lprng &amp;&amp;
78ln -sf ../init.d/lpd ../rc6.d/K00lprng</command></userinput></screen>
79
80</sect3>
81
82</sect2>
83
Note: See TracBrowser for help on using the repository browser.