Changeset ae9c528 for server/other/dhcp
- Timestamp:
- 03/28/2004 01:46:42 AM (20 years ago)
- Branches:
- 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
- Children:
- fe88f584
- Parents:
- ff023d1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/other/dhcp/dhcp-config.xml
rff023d1 rae9c528 11 11 found in Chapter 14.</para> 12 12 13 <para>Note that you only want to startthe <acronym>DHCP</acronym> server if13 <para>Note that you only need the <acronym>DHCP</acronym> server if 14 14 you want to issue <acronym>LAN</acronym> addresses over your network. The 15 15 <acronym>DHCP</acronym> client doesn't need this script to be used. Also note 16 16 that this script is coded for the <emphasis role="strong">eth1</emphasis> 17 interface, which may need to be modified for your hardware configuration. 18 With that in mind the <application><acronym>DHCP</acronym></application> init.d script can be created 19 using the following commands.</para> 17 interface, which may need to be modified for your hardware configuration.</para> 20 18 21 <screen><userinput><command>cat > /etc/rc.d/init.d/dhcp << "EOF"</command> 22 #!/bin/sh 23 # Begin $rc_base/init.d/dhcp 24 25 # Based on sysklogd script from LFS-3.1 and earlier. 26 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org 27 28 . /etc/sysconfig/rc 29 . $rc_functions 30 31 case "$1" in 32 start) 33 echo "Starting DHCP Server..." 34 loadproc dhcpd -q eth1 35 ;; 36 37 stop) 38 echo "Stopping DHCP Server..." 39 killproc dhcpd 40 ;; 41 42 reload) 43 echo "Reloading DHCP Server..." 44 reloadproc dhcpd 45 ;; 46 47 restart) 48 $0 stop 49 sleep 1 50 $0 start 51 ;; 52 53 status) 54 statusproc dhcpd 55 ;; 56 57 *) 58 echo "Usage: $0 {start|stop|reload|restart|status}" 59 exit 1 60 ;; 61 esac 62 63 # End $rc_base/init.d/dhcp 64 <command>EOF 65 chmod 755 /etc/rc.d/init.d/dhcp</command></userinput></screen> 19 <para>Install <filename>/etc/rc.d/init.d/dhcp</filename> 20 init script included in the <xref linkend="intro-important-bootscripts"/> package.</para> 21 22 <screen><userinput><command>make install-dhcp</command></userinput></screen> 66 23 67 24 <para>The lease file must exist on startup. The following command will
Note:
See TracChangeset
for help on using the changeset viewer.