I want to relocate the mail service from one machine to the backup. The
stop script reads:
/sbin/init.d/sendmail stop
umount /mailmnt
This fails because - within the script time of 2 mins - there are still
files open on /mailmnt. LSOF shows dozens open. ps -e shows many forked
sendmail processes busy trying to deliver mail to remote hosts.
I have tried the following:
ps -e | grep sendmail | awk '{print $1} | xargs -i kill -KILL {}
which reduces files open but does not eliminate them and u also see a few
sendmails left over even after executing the kill??
What I would like is an option for umount which means
try to unmount the disk gracefully but - after a specified? time -
unmount it anyway.
man umount doesnt offer anything useful. Can anybody suggest a solution
please?
TIA
stuart mckenzie
Received on Thu Sep 09 1999 - 10:06:34 NZST