WIth a BSD-style Unix, you need to append the following code to the
rc.local file, which is typically found in the
/etc or
/etc/rc.d directories:
if [ -x /usr/local/samba/bin/smbd]; then
echo "Starting smbd..."
/usr/local/samba/bin/smbd -D
echo "Starting nmbd..."
/usr/local/samba/bin/nmbd -D
fi
This code is very simple; it checks to see if the
smbd file has execute permissions on it, and if it does, it starts up each of the Samba daemons on system boot.