SUMMARY: can not start sendmail

From: Liang, Warren (Warren.Liang@sms-ito.com)
Date: Wed Jan 29 2003 - 17:43:49 EST


Good Afternoon:

Many thanks to Shawn Keller. Shawn pointed to the root cause:
If you do a "who -r" it will show you the runlevel. If there is nothing in
the output, the system won't know where it's at as far as runlevel. This
hampers many other services too if they were to stop. What I found was that
the systems where this occurred were
running 'logrotate' and rotating the /var/adm/wtmp which also restarts the
/var/adm/utmp. Since the /var/adm/utmp rotates, the new utmp file is blank
and
the system gives that same error. Apart from rebooting, if you have
"logrotate
running in your root crontab, I suggest commenting it out and restarting
cron.
However cron may give the same error, or even a different error when trying
to
restart it. To temporarily fix our problem of the same issue we just did a
'cp'
of an older rotated utmp file such as 'utmp.0' or 'utmp.1' file over the
latest
one. e.g., cp /var/adm/utmp.0 /var/adm/utmp. If you ls -l the /var/adm
directory, check to see if there are multiple backups of the utmp and wtmp.
If
so, this is the case. If you don't have any, copy the /var/adm/utmp from
another system. It's not perfect, but if you can't reboot at the moment, it
works.

My original post is:
 I ran mailconfig, configure an Tru64 as a mail Client. After entering a
mail
> server name and clinking "Commit", mailconfig could not restart the mail
> server. I entered command "# /sbin/rc3.d/S40sendmail start", a similar
error
> message shows up:
> Could not start SMTP Mail Service, Run level must be S.

Warren Liang
Systems Management Specialists, Inc.
Midrange Systems
(714) 986-8342

****************************************************************************
********************************
NOTICE: This Email (including any attachments) may contain confidential and
privileged material for the sole use of the intended recipient(s). Any
review, use, copying, distribution or disclosure by others is strictly
prohibited. If you are not the intended recipient (or authorized to receive
for the recipient), please contact the sender by reply email and delete all
copies of this message including any attachments.
Thank you
****************************************************************************
********************************



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:05 EDT