source: basicnet/netprogs/portmap/portmap-config.xml@ 0f9ff0f

10.0 10.1 11.0 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 ken/refactor-virt 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/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 0f9ff0f was 0f9ff0f, checked in by Larry Lawrence <larry@…>, 19 years ago

symlink lines for firewall, portmap & nfs

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

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