Samba share script

Hi everyone! I'm trying to run a script when a folder is shared and when it stop being shared.
Is there something like .start_share or .stop_share scripts in Samba where I could run some commands?:confused:

edit: maybe with a wrapper in smbmount but I share folders via nautilus. Any ideas?