Setting ESETS for Samba (Ubuntu upstart)

Upstart is an event-based init daemon used in Ubuntu Linux which starts tasks and services during boot, stops them during shutdown and supervises them while the system is running.

To scan files using the Samba daemon, follow the steps below to use the LIBC preload method:

1.Replace the original command in the Samba service configuration file /etc/init/smbd.conf with the following:
exec env LD_PRELOAD=@LIBDIR@/ smbd -F

2.Save the Samba service configuration file and restart the service:
stop smbd && start smbd