The samba event script use ''nice service'', and service is not in, for example, debian based distributions. Patch to follow
Created attachment 3137 [details] Patch to correct the debian compatibility
this has been fixed. Thanks