From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079079016329.tru64-unix-managers.marc@archive.invalid> From: Scott Johnson Date: Wed, 27 Oct 1999 15:37:17 +0000 To: tru64-unix-managers Subject: Summary: sendmail files are locked. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079079016329 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,