tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Summary: sendmail files are locked.
@ 1999-10-27 15:37 Scott Johnson
  0 siblings, 0 replies; only message in thread
From: Scott Johnson @ 1999-10-27 15:37 UTC (permalink / raw)
  To: tru64-unix-managers

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,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-10-27 15:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-27 15:37 Summary: sendmail files are locked Scott Johnson

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