Ignore:
Timestamp:
05/14/2004 06:52:08 AM (20 years ago)
Author:
Tushar Teredesai <tushar@…>
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:
056970c5
Parents:
ff3b4cd
Message:

Added blfs-bootscripts-2004-05-15

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/security/heimdal/heimdal-config.xml

    rff3b4cd r34598ae  
    176176</para>
    177177
    178 <!--
    179178<para>Install <filename>/etc/rc.d/init.d/heimdal</filename> init script
    180179included in the <xref linkend="intro-important-bootscripts"/>
     
    182181
    183182<screen><userinput><command>make install-heimdal</command></userinput></screen>
    184 -->
    185 
    186 <para>
    187 To automate the running of Kerberos server and
    188 <command>kpasswdd</command> daemon, use the following command to create
    189 the init.d script:
    190 </para>
    191 
    192 <screen><userinput><command>cat &gt;etc/rc.d/init.d/heimdal &lt;&lt; "EOF"</command>
    193 #!/bin/sh
    194 # Begin $rc_base/init.d/heimdal
    195 
    196 # Based on sysklogd script from LFS-3.1 and earlier.
    197 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    198 # Heimdal bootscript submitted by Randy McMurchy &lt;LFS-User_at_mcmurchy_dot_com&gt;
    199 
    200 . /etc/sysconfig/rc
    201 . $rc_functions
    202 
    203 case "$1" in
    204         start) 
    205                 echo "Starting KDC Server Daemon..."
    206                 if test -f "/var/run/kdc.pid"
    207                 then
    208                         print_status warning running
    209                 else
    210                         /usr/sbin/kdc &amp;
    211                         sleep 1
    212                         if test -f "/var/run/kdc.pid"
    213                         then
    214                                 print_status success
    215                         else
    216                                 print_status failure
    217                         fi
    218                 fi
    219                 echo "Starting KDC kpasswdd Daemon..."
    220                 if test -f "/var/run/kpasswdd.pid"
    221                 then
    222                         print_status warning running
    223                 else
    224                         /usr/sbin/kpasswdd &amp;
    225                         sleep 1
    226                         if test -f "/var/run/kpasswdd.pid"
    227                         then
    228                                 print_status success
    229                         else
    230                                 print_status failure
    231                         fi
    232                 fi
    233                 ;;
    234 
    235         stop)   
    236                 echo "Stopping KDC kpasswdd Daemon..."
    237                 killproc /usr/sbin/kpasswdd
    238                 echo "Stopping KDC Server Daemon..."
    239                 killproc /usr/sbin/kdc
    240                 ;;
    241 
    242         restart)
    243                 $0 stop
    244                 sleep 1
    245                 $0 start
    246                 ;;
    247 
    248         status)
    249                 statusproc /usr/sbin/kdc
    250                 statusproc /usr/sbin/kpasswdd
    251                 ;;
    252 
    253         *)
    254                 echo "Usage: $0 {start|stop|restart|status}"
    255                 exit 1
    256                 ;;
    257 esac
    258 
    259 # End $rc_base/init.d/heimdal
    260 <command>EOF
    261 chmod 754 /etc/rc.d/init.d/heimdal</command></userinput></screen>
    262 
    263 <para>
    264 Create the symbolic links to this file in the relevant <filename
    265 class="directory">rc.d</filename> directory with the following commands:
    266 </para>
    267 
    268 <screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
    269 ln -sf ../init.d/heimdal ../rc0.d/K42heimdal &amp;&amp;
    270 ln -sf ../init.d/heimdal ../rc1.d/K42heimdal &amp;&amp;
    271 ln -sf ../init.d/heimdal ../rc2.d/K42heimdal &amp;&amp;
    272 ln -sf ../init.d/heimdal ../rc3.d/S28heimdal &amp;&amp;
    273 ln -sf ../init.d/heimdal ../rc4.d/S28heimdal &amp;&amp;
    274 ln -sf ../init.d/heimdal ../rc5.d/S28heimdal &amp;&amp;
    275 ln -sf ../init.d/heimdal ../rc6.d/K42heimdal</command></userinput></screen>
    276183
    277184</sect4>
Note: See TracChangeset for help on using the changeset viewer.