It should be: mkdir -p /var/run/samba
Otherwise if the directory already exists it won't be able to start. So mkdir -p will start in all conditions.
It should be:
mkdir -p /var/run/samba
Otherwise if the directory already exists it won't be able to start. So mkdir -p will start in all conditions.