From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5536f97075f32148,start X-Google-Attributes: gidfee84,public From: hx_101@hotmail.com (4x4) Subject: HELP! Update Problem! Date: 1999/10/10 Message-ID: <3800eb8e.232267@news.accesscable.net>#1/1 X-Deja-AN: 535108391 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Trace: nnrp1.uunet.ca 939584532 24.138.15.62 (Sun, 10 Oct 1999 15:42:12 EDT) Organization: UUNET Canada News Reader Service MIME-Version: 1.0 Reply-To: hx_101@hotmail.com NNTP-Posting-Date: Sun, 10 Oct 1999 15:42:12 EDT Newsgroups: comp.unix.osf.osf1 Hi everyone, I just did an upgrade from DU 4.0 - 4.0d.... The only problem is that my mail is not working at all. I get the message unable to start mail service........ The script in /sbin/rc2.d/K30sendmail will not start sendmail....... The script************* #!/sbin/sh # # # OSF/1 Release 1.0 PATH=/sbin:/usr/sbin:/usr/bin export PATH ARGS=`rcmgr get SENDMAIL_ARGS` ARGS=${ARGS:-"-om"} # D'flt: send to sender too MQUEUE=/var/spool/mqueue # # Number of days before pruning out dead files. # # TIMEOUT_QUEUERUN should be set to the number of days before a mail # message is rejected, with RFC 1123 recommending a minimum of 4-5 days. # This value should correspond (or be greater than) the value in the # sendmail.cf file. By default, sendmail V8 uses 5 (O Timeout.queuerun=5d), # while other sendmail pkgs typically used 3 (OT3d). # CLEAN_MISC is used to clean out other queuefile cruft, while # CLEAN_DEAD is used to clean out dead letters and core files. # # Note: find actually adds a day to these numbers, so if you specify # 5, it will clean out files >= 6 days old. # TIMEOUT_QUEUERUN=5 CLEAN_MISC=2 CLEAN_DEAD=7 cleanqueue() { # Cleans out any old files from the Queue directory. # # If you wish to save any file, rename it or put it in a subdirectory, # e.g. $MQUEUE/save.d/core # Find all the old files find $MQUEUE \( \( -name '[xtlnQT]f*' -mtime +$CLEAN_MISC \) -o \ \( \( -name core -o -name dead.letter \) -mtime +$CLEAN_DEAD \) -o \ \( -name '[dq]f*' -mtime +$TIMEOUT_QUEUERUN \) \) -print | while read name; do # Remove *only* the files directly in $MQUEUE if [ `dirname $name` = $MQUEUE ]; then rm -f $name fi done } case "$1" in 'start') set `who -r` if [ "$9" = "S" ]; then if [ -f /usr/sbin/sendmail ]; then # cleanqueue # Frozen configs not supported # /usr/sbin/sendmail -bz /usr/sbin/sendmail -bi # Use rcmgr to modify the command line args; # if multiple "-q" args are given, the last one wins /usr/sbin/sendmail -bd -q15m ${ARGS} & echo "SMTP Mail Service started" else echo "Unable to start SMTP Mail Service, No /usr/sbin/sendmail" exit 1 fi else echo "Unable to start SMTP Mail Service, Run level must be S" exit 1 fi ;; 'stop') pid=`/bin/ps -e | grep sendmail | grep connection | sed -e 's/^ *//' -e 's/ .*//' | head -1` if [ "X$pid" != "X" ]; then /bin/kill $pid else echo "No pid for SMTP Mail Service found" exit 1 fi ;; 'restart') /sbin/init.d/sendmail stop if [ $? -ne 0 ]; then echo " -- Could not find running sendmail - attempting to restart..." fi sleep 2 pid=`/bin/ps -e | grep sendmail | grep connection | sed -e 's/^ *//' -e 's/ .*//' | head -1` if [ "X$pid" != "X" ]; then sleep 3 pid=`/bin/ps -e | grep sendmail | grep connection | sed -e 's/^ *//' -e 's/ .*//' | head -1` if [ "X$pid" != "X" ]; then echo "Could not kill SMTP Mail Service" echo " -- Kill sendmail by hand then do a start" exit 1 fi fi /sbin/init.d/sendmail start | sed -e 's/start/restart/' ;; clean) cleanqueue ;; *) echo "usage: $0 {start|stop|restart|clean}" ;; esac