Samba inotify events
David Collier-Brown
davec-b at rogers.com
Wed Jul 2 12:37:56 GMT 2008
On Wed, Jul 02, 2008 at 10:43:53AM +0000, Richard Henwood wrote:
>>>Are there any configuration tweaks which may help improve the
>>>predictability of the events I observe through Samba?
Not specifically via the built-in inotify, but there are hooks
for doing actions on connect/disconnect from a share, such as
postexec (S)
This option specifies a command to be run whenever the service is
disconnected. It takes the usual substitutions. The command may be
run as the root on some systems.
An interesting example may be do unmount server resources:
postexec = /etc/umount /cdrom
See also preexec.
Default: none (no command executed)
Example: postexec = echo "%u disconnected from %S from %m (%I)" >> /tmp/log
--dave
--
David Collier-Brown, | Always do right. This will gratify
System Programmer and Author | some people and astonish the rest
davecb at spamcop.net | -- Mark Twain
(416) 223-5943
More information about the samba-technical
mailing list