source: basicnet/netprogs/portmap/portmap-config.xml@ e80cc95

10.0 10.1 11.0 11.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 krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb v1_0 v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/intltool xry111/test-20220226
Last change on this file since e80cc95 was e80cc95, checked in by Larry Lawrence <larry@…>, 19 years ago

config files edit

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

  • Property mode set to 100644
File size: 1.4 KB
Line 
1<sect2>
2<title>Configuring portmap</title>
3
4<sect3><title>Config files</title>
5<para><filename>/etc/rc.d/init.d/portmap</filename></para>
6</sect3>
7
8<sect3><title>Create the portmap boot script</title>
9
10<para><screen><userinput>cat &gt; /etc/rc.d/init.d/portmap &lt;&lt; "EOF"</userinput>
11#!/bin/sh
12# Begin /etc/rc.d/init.d/portmap
13
14source /etc/rc.d/init.d/functions
15
16case "$1" in
17 start)
18 echo "Starting RPC Portmap"
19 loadproc /sbin/portmap
20 ;;
21
22 stop)
23 echo "Stopping Portmap"
24 killproc /sbin/portmap
25 ;;
26
27 restart)
28 $0 stop
29 /bin/sleep 1
30 $0 start
31 ;;
32
33 *)
34 echo "Usage: $0 {start|stop|restart}"
35 exit 1
36 ;;
37
38esac
39
40# End /etc/rc.d/init.d/portmap
41<userinput>EOF
42chmod 754 /etc/rc.d/init.d/portmap &amp;&amp;
43cd /etc/rc.d/init.d &amp;&amp;
44ln -sf ../init.d/portmap ../rc0.d/K49portmap &amp;&amp;
45ln -sf ../init.d/portmap ../rc1.d/K49portmap &amp;&amp;
46ln -sf ../init.d/portmap ../rc2.d/K49portmap &amp;&amp;
47ln -sf ../init.d/portmap ../rc3.d/S22portmap &amp;&amp;
48ln -sf ../init.d/portmap ../rc4.d/S22portmap &amp;&amp;
49ln -sf ../init.d/portmap ../rc5.d/S22portmap &amp;&amp;
50ln -sf ../init.d/portmap ../rc6.d/K49portmap
51</userinput></screen></para>
52</sect3>
53
54</sect2>
55
Note: See TracBrowser for help on using the repository browser.