tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Scott Johnson <scott () dsuper ! net>
To: tru64-unix-managers
Subject: Summary: sendmail files are locked.
Date: Wed, 27 Oct 1999 15:37:17 +0000	[thread overview]
Message-ID: <96079079016329.tru64-unix-managers.marc@archive.invalid> (raw)

Hi All,

    Thanks to all who responded so fast. This is one of the strongest
aspects of this list.

    Ok, down to the fun. I have three answers to the same question:

    1) Marco has the easiest and fastest to do a  "fuser
/etc/mail/aliases.misc" on each file and then do a "ps -e|grep PID". Then
just kill it. This also did very little damage to my running services.

    2) John had a utility that would be good in this example and also if you
have a mounted drive that you want to unmount but can't find what is using
the files.
       > Get lsof and use it to find which process has those files open.
        >LSOF can be found here:
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/

    3) Thanks to everyone else for the alternate answer of, to just kill all
my sendmail's running. This is easy, but brings down services for a short
period of time.

I hope this helps someone else.



Scott Johnson
scott@supernet.ca
sbj@idirect.com
Delphi SuperNet Inc
A Internet Direct company
Tel: 514-281-7500  ext: 225
Fax: 514-281-6599

----- Original Message -----
Subject: sendmail files are locked.


Hi all,

    I have a problem trying to rebuild my sendmail hash files. When I run
newalaises I get:

                        oracle:/var/adm/sendmail#newaliases
                        Alias file /etc/mail/aliases.misc is locked (maybe
being rebuilt)
                        Alias file /etc/mail/aliases is locked (maybe being
rebuilt)
                        Alias file /etc/mail/aliases.staff is locked (maybe
being rebuilt)


How do I find the applications locking the files and remove the locks
without rebooting my system?

Thanks for any help,

                 reply	other threads:[~1999-10-27 15:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox