Search code examples
bashraspberry-pi3samba

I need to run a terminal command on startup of a raspberry pi


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


Solution

  • You can enable a service to make it start at boot

    sudo service smbd enable