I am building my own little server out of a raspberry pi using samba and I need to run
sudo service smbd start
on start-up so that in the case of a power down it will automatically restart samba
You can enable a service to make it start at boot
sudo service smbd enable