- Timestamp:
- 03/27/2004 07:16:16 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:
- 12929fb
- Parents:
- a58b896
- Location:
- server/mail
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
server/mail/exim/exim-config.xml
ra58b896 r98d18589 24 24 present.</para></note> 25 25 26 <para>To start and stop Exim on system boot/shutdown create the 27 exim boot script with the following commands:</para> 28 29 <screen><userinput><command>cat > /etc/rc.d/init.d/exim << "EOF"</command> 30 #!/bin/sh 31 # Begin $rc_base/init.d/exim 32 33 # Based on sysklogd script from LFS-3.1 and earlier. 34 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org 35 36 . /etc/sysconfig/rc 37 . $rc_functions 38 39 case "$1" in 40 41 start) 42 echo "Starting exim..." 43 loadproc /usr/sbin/exim -bd -q1m 44 ;; 45 46 stop) 47 echo "Stopping exim..." 48 killproc exim 49 ;; 50 51 status) 52 statusproc exim 53 ;; 54 55 restart) 56 $0 stop 57 sleep 1 58 $0 start 59 ;; 60 61 *) 62 echo "Usage: $0 {start|stop|status|restart}" 63 exit 1 64 ;; 65 esac 66 67 # End $rc_base/init.d/exim 68 <command>EOF 69 chmod 755 /etc/rc.d/init.d/exim</command></userinput></screen> 70 71 <para>Create the run level symlinks with the following commands:</para> 72 73 <screen><userinput><command>cd /etc/rc.d/init.d && 74 ln -sf ../init.d/exim ../rc0.d/K25exim && 75 ln -sf ../init.d/exim ../rc1.d/K25exim && 76 ln -sf ../init.d/exim ../rc2.d/K25exim && 77 ln -sf ../init.d/exim ../rc3.d/S35exim && 78 ln -sf ../init.d/exim ../rc4.d/S35exim && 79 ln -sf ../init.d/exim ../rc5.d/S35exim && 80 ln -sf ../init.d/exim ../rc6.d/K25exim</command></userinput></screen> 26 <para>To automate the running of exim at startup, 27 install <filename>/etc/rc.d/init.d/exim</filename> 28 init script included in the <xref linkend="intro-important-bootscripts"/> package.</para> 29 30 <screen><userinput><command>make install-exim</command></userinput></screen> 81 31 82 32 </sect3> -
server/mail/postfix/postfix-config.xml
ra58b896 r98d18589 45 45 <sect3><title>Postfix init.d script</title> 46 46 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> 48 init script included in the <xref linkend="intro-important-bootscripts"/> package.</para> 48 49 49 <screen><userinput><command>cat > /etc/rc.d/init.d/postfix << "EOF"</command> 50 #!/bin/sh 51 # Begin $rc_base/init.d/postfix 50 <screen><userinput><command>make install-postfix</command></userinput></screen> 52 51 53 # Based on sysklogd script from LFS-3.1 and earlier.54 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org55 56 . /etc/sysconfig/rc57 . $rc_functions58 59 case "$1" in60 61 start)62 echo "Starting Postfix..."63 loadproc postfix start64 ;;65 66 stop)67 echo "Stopping Postfix..."68 loadproc postfix stop69 ;;70 71 reload)72 echo "Reloading Postfix..."73 loadproc postfix reload74 ;;75 76 abort)77 echo "Aborting Postfix..."78 loadproc postfix abort79 ;;80 81 flush)82 echo "Flushing Postfix..."83 loadproc postfix flush84 ;;85 86 check)87 echo "Checking Postfix..."88 loadproc postfix check89 ;;90 91 restart)92 $0 stop93 sleep 194 $0 start95 ;;96 97 *)98 echo "Usage: $0 {start|stop|reload|abort|flush|check|restart}"99 exit 1100 ;;101 esac102 103 # End $rc_base/init.d/postfix104 <command>EOF105 chmod 755 /etc/rc.d/init.d/postfix</command></userinput></screen>106 107 <para>Create the symbolic links to this file in the relevant108 <filename>rc.d</filename> directory with the following commands:</para>109 110 <screen><userinput><command>cd /etc/rc.d/init.d &&111 ln -sf ../init.d/postfix ../rc0.d/K25postfix &&112 ln -sf ../init.d/postfix ../rc1.d/K25postfix &&113 ln -sf ../init.d/postfix ../rc2.d/K25postfix &&114 ln -sf ../init.d/postfix ../rc3.d/S35postfix &&115 ln -sf ../init.d/postfix ../rc4.d/S35postfix &&116 ln -sf ../init.d/postfix ../rc5.d/S35postfix &&117 ln -sf ../init.d/postfix ../rc6.d/K25postfix</command></userinput></screen>118 52 </sect3> 119 53 -
server/mail/sendmail/sendmail-config.xml
ra58b896 r98d18589 17 17 newaliases -v</command></userinput></screen> 18 18 19 <para>To start and stop Sendmail on system boot/shutdown create the 20 <command>sendmail</command> boot script with the following commands:</para> 19 <para>To automate the running of Sendmail at startup, install <filename>/etc/rc.d/init.d/sendmail</filename> 20 init script included in the <xref linkend="intro-important-bootscripts"/> package.</para> 21 22 <screen><userinput><command>make install-sendmail</command></userinput></screen> 21 23 22 <note><para>The -qNm option , where N is number of minutes, controls24 <note><para>The -qNm option to <command>sendmail</command>, where N is number of minutes, controls 23 25 how often Sendmail will process the mail queue. A default of 5 24 minutes is used here. Individual workstation users may want to set26 minutes is used in the init script. Individual workstation users may want to set 25 27 this as low as 1 minute, large installations handling more mail will 26 28 want to set it higher.</para></note> 27 29 28 <screen><userinput><command>cat > /etc/rc.d/init.d/sendmail << "EOF" 29 #!/bin/sh 30 # Begin $rc_base/init.d/sendmail 31 32 # Based on sysklogd script from LFS-3.1 and earlier. 33 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org 34 35 . /etc/sysconfig/rc 36 . $rc_functions 37 38 case "$1" in 39 40 start) 41 echo "Starting sendmail..." 42 loadproc /usr/sbin/sendmail -bs -bd -q5m start 43 ;; 44 45 stop) 46 echo "Stopping Sendmail..." 47 killproc sendmail 48 ;; 49 50 status) 51 statusproc sendmail 52 ;; 53 54 restart) 55 $0 stop 56 sleep 1 57 $0 start 58 ;; 59 60 *) 61 echo "Usage: $0 {start|stop|status|restart}" 62 exit 1 63 ;; 64 esac 65 66 # End $rc_base/init.d/sendmail 67 EOF 68 chmod 755 /etc/rc.d/init.d/sendmail</command></userinput></screen> 69 70 <para>Create the run level symlinks with the following commands:</para> 71 72 <screen><userinput><command>cd /etc/rc.d/init.d && 73 ln -sf ../init.d/sendmail ../rc0.d/K25sendmail && 74 ln -sf ../init.d/sendmail ../rc1.d/K25sendmail && 75 ln -sf ../init.d/sendmail ../rc2.d/K25sendmail && 76 ln -sf ../init.d/sendmail ../rc3.d/S35sendmail && 77 ln -sf ../init.d/sendmail ../rc4.d/S35sendmail && 78 ln -sf ../init.d/sendmail ../rc5.d/S35sendmail && 79 ln -sf ../init.d/sendmail ../rc6.d/K25sendmail</command></userinput></screen></sect3> 80 30 </sect3> 81 31 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.