ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Update to Mac OS X Terminal, Part 3
Subject:   A typo?
Date:   2002-06-08 12:35:24
From:   jeffulri
Your article suggests that one, "Save that file and then open /System/Library/StartupItems/Sendmail/Sendmail:


sudo pico /System/Library/StartupItems/Sendmail/Sendmail


Find this line near the end:


/usr/sbin/sendmail -bd -q1h


And add this line after it:


/usr/sbin/sendmail -C /etc/mail/submit.cf -q1h


Save that file and restart your machine to allow the startup script to run."


Thus generating the following Sendmail file


---[Cut Here]---


#!/bin/sh


. /etc/rc.common


##
# Start mail server
##


if [ "${MAILSERVER:=-NO-}" = "-YES-" ]; then


ConsoleMessage "Starting mail services"


##
# Remove junk from the outbound mail queue directory and start up
# the sendmail daemon. /usr/spool/mqueue is assumed here even though
# it can be changed in the sendmail configuration file.
##
queue=/var/spool/mqueue
rm -f ${queue}/nf* ${queue}/lf*


/usr/sbin/sendmail -bd -q1h
/usr/sbin/sendmail -C /etc/mail/submit.cf -q1h


fi


---[Cut Here]---


Presumabably, you only wanted us to ADD to that line. Thereby generating the following Sendmail file


---[Cut Here]---


#!/bin/sh


. /etc/rc.common


##
# Start mail server
##


if [ "${MAILSERVER:=-NO-}" = "-YES-" ]; then


ConsoleMessage "Starting mail services"


##
# Remove junk from the outbound mail queue directory and start up
# the sendmail daemon. /usr/spool/mqueue is assumed here even though
# it can be changed in the sendmail configuration file.
##
queue=/var/spool/mqueue
rm -f ${queue}/nf* ${queue}/lf*


/usr/sbin/sendmail -C /etc/mail/submit.cf -q1h


fi


---[Cut Here]---


Please clarify and or change your article to correctly reflect your intent.


Also, why are you not appending a & to the line in question, thereby making sendmail a backgournd app, as it should be?


1 to 2 of 2
  1. A typo?
    2002-06-09 20:44:25  jafager [View]

  2. Chris Stone photo A typo?
    2002-06-09 14:58:51  Chris Stone | O'Reilly AuthorO'Reilly Blogger [View]

    • Not a typo.
      2002-06-10 08:23:19  jeffulri [View]

1 to 2 of 2