Samba and restoring the services

Hi to all (openSUSE 13.1, KDE 4.12)
often, when I start the PC, to be able to brtowse the samba resources, having
to update the services:

# systemctl restart smb
# systemctl restart nmb
# nmbd

Is possible, insert a script in smb.conf that in case of error goes to recharge the services automatically ?