Ignore:
Timestamp:
03/27/2004 07:16:16 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:
12929fb
Parents:
a58b896
Message:

More bootscript changes

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/mail/postfix/postfix-config.xml

    ra58b896 r98d18589  
    4545<sect3><title>Postfix init.d script</title>
    4646
    47 <para>To automate the running of Postfix, use following command to create the init.d script:</para>
     47<para>To automate the running of Postfix at startup, install <filename>/etc/rc.d/init.d/postfix</filename>
     48init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
    4849
    49 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/postfix &lt;&lt; "EOF"</command>
    50 #!/bin/sh
    51 # Begin $rc_base/init.d/postfix
     50<screen><userinput><command>make install-postfix</command></userinput></screen>
    5251
    53 # Based on sysklogd script from LFS-3.1 and earlier.
    54 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    55 
    56 . /etc/sysconfig/rc
    57 . $rc_functions
    58 
    59 case "$1" in
    60 
    61         start)
    62         echo "Starting Postfix..."
    63         loadproc postfix start
    64         ;;
    65 
    66         stop)
    67         echo "Stopping Postfix..."
    68         loadproc postfix stop
    69         ;;
    70                
    71         reload)
    72         echo "Reloading Postfix..."
    73         loadproc postfix reload
    74         ;;
    75 
    76         abort)
    77         echo "Aborting Postfix..."
    78         loadproc postfix abort
    79         ;;
    80 
    81         flush)
    82         echo "Flushing Postfix..."
    83         loadproc postfix flush
    84         ;;
    85        
    86         check)
    87         echo "Checking Postfix..."
    88         loadproc postfix check
    89         ;;
    90 
    91         restart)
    92         $0 stop
    93         sleep 1
    94         $0 start
    95         ;;
    96 
    97         *)
    98         echo "Usage: $0 {start|stop|reload|abort|flush|check|restart}"
    99         exit 1
    100         ;;
    101 esac
    102 
    103 # End $rc_base/init.d/postfix
    104 <command>EOF
    105 chmod 755 /etc/rc.d/init.d/postfix</command></userinput></screen>
    106 
    107 <para>Create the symbolic links to this file in the relevant
    108 <filename>rc.d</filename> directory with the following commands:</para>
    109 
    110 <screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
    111 ln -sf ../init.d/postfix ../rc0.d/K25postfix &amp;&amp;
    112 ln -sf ../init.d/postfix ../rc1.d/K25postfix &amp;&amp;
    113 ln -sf ../init.d/postfix ../rc2.d/K25postfix &amp;&amp;
    114 ln -sf ../init.d/postfix ../rc3.d/S35postfix &amp;&amp;
    115 ln -sf ../init.d/postfix ../rc4.d/S35postfix &amp;&amp;
    116 ln -sf ../init.d/postfix ../rc5.d/S35postfix &amp;&amp;
    117 ln -sf ../init.d/postfix ../rc6.d/K25postfix</command></userinput></screen>
    11852</sect3>
    11953
Note: See TracChangeset for help on using the changeset viewer.