On Wednesday 05 September 2007 13:15:34 George Vanev wrote:
> Hi all,
> I have the following script:
>
>
> #!/bin/sh
> mnt_path='//[EMAIL PROTECTED]/archive'
> mnt_ip='xxx.xxx.xxx.xxx'
>
> mkdir /usr/tmp_mnt
> mount_smbfs -N -I $mnt_ip $mnt_path /usr/tmp_mnt
>
> #rotate files
> #dump mysql database
> #gzip
> #encrypt
> #copy to /usr/tmp_mnt
>
> umount /usr/tmp_mnt
> <EOF>
>
> Sometimes /usr/tmp_mnt is still mounted.
> It's random behavior.
> I didn't noticed any logic when it is unmounted or not.

Unmounts don't work when device is busy, ie: someone using a file or with cwd 
within the filesystem. umount -f will take care of it, or use 
fstat -f /usr/tmp_mnt to check before unmounting.

-- 
Mel

People using reply to all on lists, must think I need 2 copies.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to